Trim

From NSB App Studio
Revision as of 04:36, 17 August 2012 by Brendon (talk | contribs)
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