LTrim: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Brendon (talk | contribs)
No edit summary
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
''This function is for BASIC compatibility. It is not available in pure JavaScript projects.''
LTrim(''string'')
LTrim(''string'')


Line 5: Line 7:
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 (Basic) ==


<pre>
<pre>
Line 25: Line 27:
== Related Items ==
== Related Items ==


[[rtrim|RTRIM]], [[trim|TRIM]]
[[rtrim|RTrim]], [[trim|Trim]]


[[Category:Language Reference]]
[[Category:Language Reference]]
[[Category:Strings]]
[[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