« Return to Thread: Easier way to get a character of a string at some index

Easier way to get a character of a string at some index

by ZuLuuuuuu :: Rate this Message:

Reply to Author | View in Thread

Hello,

For example, I want to get the third character of string "Hello". I
write something like this:

"Hello" at(2) asCharacter

This is of course not that hard but I should append asCharacter
message because I want to get the letter and not the byte presentation
of it. Is this the easiest way of getting characters or is there a
single message to get a character at some index?

 « Return to Thread: Easier way to get a character of a string at some index

LightInTheBox - Buy quality products at wholesale price!