MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  String functions  StringTrimRight

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
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"