May 1995
Beginner
508 pages
16h 14m
English
Trim Function
Trim(string)string
Use: Required
Data Subtype: String
Any string expression.
A Variant of subtype String.
Removes both leading and trailing spaces from a given string.
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.
| LTrim Function, RTrim Function |
Read now
Unlock full access