LTrim: Difference between revisions
Jump to navigation
Jump to search
Created page with "LTRIM(''string'') '''Description''' LTRIM returns a string with all leading spaces removed. The required parameter, ''string'', is any valid string expression. '''Example''..." |
No edit summary |
||
| Line 1: | Line 1: | ||
LTrim(''string'') | |||
== Description == | |||
LTrim returns a string with all leading spaces removed. The required parameter, ''string'', is any valid string expression. | |||
== Example == | |||
<pre> | <pre> | ||
Rem LTrim Example | |||
' | 'LTrim trims all leading spaces | ||
Dim Spacey | |||
Spacey = " K" | Spacey = " K" | ||
Print "(" & Spacey & ")" | |||
Print "(" & LTrim(Spacey) & ")" | |||
</pre> | </pre> | ||
== Output == | |||
<pre> | <pre> | ||
| Line 23: | Line 23: | ||
</pre> | </pre> | ||
== Related Items == | |||
[[rtrim|RTRIM]], [[trim|TRIM]] | [[rtrim|RTRIM]], [[trim|TRIM]] | ||
[[Category:Language Reference]] | |||
Revision as of 02:12, 17 August 2012
LTrim(string)
Description
LTrim returns a string with all leading spaces removed. The required parameter, string, is any valid string expression.
Example
Rem LTrim Example
'LTrim trims all leading spaces
Dim Spacey
Spacey = " K"
Print "(" & Spacey & ")"
Print "(" & LTrim(Spacey) & ")"
Output
( K) (K)