it should be noted that with a string you CANNOT treat it exactly like an array (although slices work the same as with arrays).
doing:
will not print the letter T
it will in fact print 84 (which is the ascii value of "T")
to print an individual character you need to use a slice.
think of the slice as [StartIndex..Count] instead of the normal [StartIndex..EndIndex]
doing:
Local myString:String = "This is a test" print myString[0]
will not print the letter T
it will in fact print 84 (which is the ascii value of "T")
to print an individual character you need to use a slice.
Local myString:String = "This is a test" Print myString[0..1]
think of the slice as [StartIndex..Count] instead of the normal [StartIndex..EndIndex]