(Formerly known as global function StrGetCharAt, which is now obsolete)
readonly char String.Chars[position];
Returns the character at POSITION within the string.
POSITION is the character index (where 0 is the first character, and the last
allowable value is the Length minus 1).
If POSITION is outside the string, this function returns 0.
NOTE: The Chars array is read-only. If you want to change one of the characters
in the string, use String.ReplaceCharAt.
Example:
String text = "This is my string.";
Display("The 4th character is: %c", text.Chars[3]);
will display "The 4th character is: s".
See Also: String.Length,
String.ReplaceCharAt
|