MQL4 Reference
String functions
StringGetChar
| int StringGetChar( |
string text, int pos) |
Returns character (code) from the specified position in the string.
Parameters:
| text |
- |
String |
| pos |
- |
Char position in the string. Can be from 0 to StringLen(text)-1. |
Sample:
int char_code=StringGetChar("abcdefgh", 3);
// char code 'c' is 99
|
|
|