Trim$ Function
Returns a string equal to specified string without leading or trailing spaces.
Syntax
Trim$(string)
Parameters
- string
- Specify a string expression.
Return Values
Specified string with leading and trailing spaces removed.
See Also
LTrim$, RTrim$
Trim$ Function Example
str$ = " data "
str$ = Trim$(str$) ' str$ = "data"