String Trim

Removes white spaces at the beginning and the end of the string.

Syntax

Trim( string str, )

 

Parameters

str string The string to be trimmed.

 

Return Values

Returns a trimmed string.

 

Copy
Example
--This program will display the Trim method in String 

        
--Remove the white space at the beginning and the end of the string "   ScanMaster ScanScript  " and assign it to "str" variable
str = String.Trim("    ScanMaster ScanScript  ")  
--Display the Size of the string
Report(String.Length(str))