Trim
TRIM(string)
Description
TRIM returns a string with all leading and trailing spaces removed. The required parameter, string, is any valid string expression.
Example
REM TRIM Example 'TRIM trims leading and trailing spaces DIM Spacey Spacey = " K " PRINT "(" & Spacey & ")" PRINT "(" & TRIM(Spacey) & ")"
Output
( K ) (K)
Related Items