Trim: Difference between revisions
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 edit summary |
||
Line 1: | Line 1: | ||
Trim(''string'') | |||
== Description == | |||
Trim returns a string with all leading and trailing spaces removed. The required parameter, ''string'', is any valid string expression. | |||
== Example == | |||
<pre> | <pre> | ||
Rem Trim Example | |||
' | 'Trim trims leading and trailing spaces | ||
Dim Spacey | |||
Spacey = " K " | Spacey = " K " | ||
Print "(" & Spacey & ")" | |||
Print "(" & Trim(Spacey) & ")" | |||
</pre> | </pre> | ||
== Output == | |||
<pre> | <pre> | ||
Line 23: | Line 23: | ||
</pre> | </pre> | ||
== Related Items == | |||
[[ltrim|LTRIM]], [[rtrim|RTRIM]] | [[ltrim|LTRIM]], [[rtrim|RTRIM]] | ||
[[Category:Language Reference]] |
Revision as of 04:36, 17 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)