Trim: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Brendon (talk | contribs)
No edit summary
Brendon (talk | contribs)
No edit summary
Line 25: Line 25:
== Related Items ==
== Related Items ==


[[ltrim|LTRIM]], [[rtrim|RTRIM]]
[[ltrim|LTrim]], [[rtrim|RTrim]]


[[Category:Language Reference]]
[[Category:Language Reference]]

Revision as of 01:49, 24 August 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