المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Displaying unicode



C# Programming
06-10-2009, 12:11 PM
I want to display a list of unicode in my datagridtable from hex 0000 to 00ff using the escape sequence \u.

I want to know whether theres a way to make the hex number beside the \u to increase by 1 by itself after each row. If not I will have to type out "\u0000" to "\u00ff" manually which can be tiring.
I know i can use if,for each or while, but i can't find a way to just increase the hex number.

Thanks

string[] row1 = new string[]{ "\u0020", "\u0021", "\u0022", "\u0023", "\u0024", "\u0025", "\u0026", "\u0027", "\u0028", "\u0029", "\u002a" }