March 2003
Intermediate to advanced
512 pages
14h 30m
English
Trim Function
Trim(string)stringUse: Required
Data Type: String
Any string expression.
A String.
Returns a string in which any leading and trailing spaces in an original string are removed.
If string is Null, the
Trim function returns Null.
Trim combines into a single function call what would otherwise be separate calls to the RTrim and LTrim functions.
VBA includes a Trim$ function that returns the a trimmed string rather than a trimmed string variant. Because VBScript does not support strong typing, the function is not implemented in VBScript.
Read now
Unlock full access