Category: Script
/ Strings
Since engine version: 1.0 OC
GetChar
Description
Determines the ASCII character code of a character in a string.
Syntax
int GetChar(string text, int index);
Parameters
- text:
- String of which to get a character.
- index:
- Position of the character. The first character is at position 0. If the specified position is outside the string,
nil
is returned.
Remark
Format("%c")
can be used to convert the character to a string.