LTrim: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Brendon (talk | contribs)
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''..."
 
Brendon (talk | contribs)
No edit summary
Line 1: Line 1:
LTRIM(''string'')
LTrim(''string'')


'''Description'''
== Description ==


LTRIM returns a string with all leading spaces removed. The required parameter, ''string'', is any valid string expression.
LTrim returns a string with all leading spaces removed. The required parameter, ''string'', is any valid string expression.


'''Example'''
== Example ==


<pre>
<pre>
REM LTRIM Example
Rem LTrim Example
'LTRIM trims all leading spaces
'LTrim trims all leading spaces
DIM Spacey
Dim Spacey
Spacey = " K"
Spacey = " K"
PRINT "(" & Spacey & ")"
Print "(" & Spacey & ")"
PRINT "(" & LTRIM(Spacey) & ")"
Print "(" & LTrim(Spacey) & ")"
</pre>
</pre>


'''Output'''
== Output ==


<pre>
<pre>
Line 23: Line 23:
</pre>
</pre>


'''Related Items'''
== 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)

Related Items

RTRIM, TRIM