Trim

Top  Previous  Next

×V2.1Ø

S

A

W

WS

ü

ü

Syntax -

Trim <variable name> <source value>

       Where:

       <variable name> is the user defined name that is assigned to the variable.

       <source value> is a literal string or a variable that contains a literal string.

 

Description:

       This command is used to strip whitespace from the beginning and the end of <source value>.  The resulting string is stored in <variable name>.

 

Sample:

       The following statement uses TRIM to remove whitespace from the beginning and end of the Total variable and stores the result in New_Total.

Trim New_Total Total