StringGetChar
StringGetChar
Returns character (code) from the specified position in the string.
ushort StringGetChar(
string string_value, // string
int pos // position
);Parameters
- string_value
[in] String.
- pos
[in] Char position in the string. Can be from 0 to StringLen(text) -1.
Returned value
Char code or 0 if error. To get information about error, call the GetLastError() function.
Example:
int char_code=StringGetChar("abcdefgh", 2);
// char code of 'c' = 99
Last updated on