LTrim
Returns a copy of a string without leading spaces (LTrim), trailing spaces (RTrim), or both leading and trailing spaces (Trim).
Structure
LTrim(string)
Parameters
The string argument is any valid string expression. If string contains Null, Null is returned.
Description
The following example uses the LTrim functions to trim leading spaces, trailing spaces, and both leading and trailing spaces, respectively:
Example
Dim MyVar
MyVar = LTrim(" vbscript ") ' MyVar contains 'vbscript '. |