Trim

From NSB App Studio
Revision as of 20:37, 8 July 2012 by Brendon (talk | contribs) (Created page with "TRIM(''string'') '''Description''' TRIM returns a string with all leading and trailing spaces removed. The required parameter, ''string'', is any valid string expression. '...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

LTRIM, RTRIM