MQL4 Reference
String functions
StringTrimRight
| string StringTrimRight( |
string text) |
The function cuts line feed characters, spaces
and tabs in the right part of the string.
The function returns a copy of the trimmed string, if possible.
Otherwise, it returns an empty string.
Parameters:
| text |
- |
String to be trimmed at the right. |
Sample:
string str1=" Hello world ";
string str2=StringTrimRight(str);
// after trimming the str2 variable will be " Hello World"
|
|
|