Siebel VB Language Reference > VB Language Reference >
This standard VB function returns a copy of a string after removing leading and trailing spaces.
A literal or expression from which leading and trailing spaces are to be removed
A copy of string with leading and trailing spaces removed.
Trim accepts expressions of type string. Trim accepts any type of string, including numeric values, and converts the input value to a string.
The dollar sign ($) in the function name is optional. If it is included, the return type is string. Otherwise the function typically returns a variant of vartype 8 (string). If the value of string is NULL, a variant of vartype 1 (Null) is returned.
For an example, read LTrim Function.