MQL4 Reference
String functions
StringSetChar
| string StringSetChar( |
string text, int pos, int value) |
Returns the string copy with changed character in the specified position.
Parameters:
| text |
- |
String where character will be changed. |
| pos |
- |
The character position in the string. Can be from 0 to StringLen(text). |
| value |
- |
New char ASCII code. |
Sample:
string str="abcdefgh";
string str1=StringSetChar(str, 3, 'D');
// str1 is "abcDefgh"
|
|
|