String TrimRight
Removes white spaces on the right hand side of the String.
Syntax
TrimRight( string str ) |
Parameters
str | string | The string to be trimmed. |
Return Values
Returns a trimmed string. |
Copy
Example
--This program will display the TrimRight operation in string
--Remove the white spaces at the end of the "ScanMaster ScanScript " string and assign it to the "str" variable
str = String.TrimRight("ScanMaster ScanScript ")
--Display the Size of the string
Report(String.Length(str))
--Display the size of "ScanMaster ScanScript " string without removing the right white spaces
Report(string.Length("ScanMaster ScanScript "))