string to character
-
Hello If i have a string how i can split it into character Ex: 200134 i want to have 2;0;0;1;3;4 Thanks a lot
Assaf
you can access individual characters in a string by indexing
string[index]
; you can convert the entire string to a char arrayString.ToCharArray()
and you can look that up in the documentation; I think you best start studying C# in a book ! :)Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
-
Hello If i have a string how i can split it into character Ex: 200134 i want to have 2;0;0;1;3;4 Thanks a lot
Assaf
Hi, I would take a look at this page: http://msdn2.microsoft.com/en-us/library/system.string(VS.80).aspx[^] to see Microsoft's info on the String class. Good luck!
It isn't enough to do well in life. One must do good when and where one can. Otherwise, what's the point?