Trim: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
(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. '...")
(No difference)

Revision as of 20:37, 8 July 2012

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