Bookshelf Home | Contents | Index | Search | PDF |
Siebel VB Language Reference > Siebel VB Language Reference >
Trim Function
This standard VB function returns a copy of a string after removing leading and trailing spaces.
Syntax
Trim[$](string)
Argument Description string A literal or expression from which leading and trailing spaces are to be removedReturns
A copy of string with leading and trailing spaces removed.
Usage
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.
See Also
Left Function
Len Function
LTrim Function
Mid Function
Mid Statement
Right Function
RTrim Function
Bookshelf Home | Contents | Index | Search | PDF |
Siebel VB Language Reference Published: 18 June 2003 |