Trim: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 25: | Line 25: | ||
== Related Items == | == Related Items == | ||
[[ltrim| | [[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)