LTrim: Difference between revisions

From NSB App Studio
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''...")
 
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
LTRIM(''string'')
''This function is for BASIC compatibility. It is not available in pure JavaScript projects.''  


'''Description'''
LTrim(''string'')


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


'''Example'''
LTrim returns a string with all leading spaces removed. The required parameter, ''string'', is any valid string expression.
 
== Example (Basic) ==


<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 25:
</pre>
</pre>


'''Related Items'''
== Related Items ==
 
[[rtrim|RTrim]], [[trim|Trim]]
 
[[Category:Language Reference]]
 
[[Category:Strings]]


[[rtrim|RTRIM]], [[trim|TRIM]]
[[Category:BASIC Functions]]

Latest revision as of 15:30, 25 March 2019

This function is for BASIC compatibility. It is not available in pure JavaScript projects.

LTrim(string)

Description

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

Example (Basic)

Rem LTrim Example
'LTrim trims all leading spaces
Dim Spacey
Spacey = " K"
Print "(" & Spacey & ")"
Print "(" & LTrim(Spacey) & ")"

Output

( K)
(K)

Related Items

RTrim, Trim