Data Type: String
Any string expression.
Returns a string in which any leading and trailing spaces in an original string are removed.
If string is
Trim function returns
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.