String.TrimRight |
Top Previous Next |
Syntax function String.TrimRight(Str: string): string
Description Removes trailing spaces and control characters from string Str and returns what's left.
See also
Example execute udsblock as begin strvalue = ' < spaces here and spaces there > ';
/* shows value with leading and trailing spaces removed */ GUI.ShowMessage('Trimmed >>' || String.Trim(strvalue) || '<<');
/* shows value with leading spaces removed */ GUI.ShowMessage('Trimleft >>' || String.TrimLeft(strvalue) || '<<');
/* shows value with trailing spaces removed */ GUI.ShowMessage('Trimright >>' || String.TrimRight(strvalue) || '<<'); end |