Rtrim: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
(Created page with "RTRIM(''string'') '''Description''' RTRIM returns string with all trailing spaces removed. The required parameter, ''string'', is any valid string expression. '''Example'' ...")
 
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
RTRIM(''string'')
''This function is for BASIC compatibility. It is not available in pure JavaScript projects.''  


'''Description'''
RTrim(''string'')


RTRIM returns string with all trailing spaces removed. The required parameter, ''string'', is any valid string expression.
== Description ==


'''Example''
RTrim returns string with all trailing spaces removed. The required parameter, ''string'', is any valid string expression.
 
== Example ==


<pre>
<pre>
REM RTRIM Example
Rem RTrim Example
'RTRIM trims all trailing spaces
'RTrim trims all trailing spaces
DIM Spacey
Dim Spacey
Spacey = "K "
Spacey = "K "
PRINT "(" & Spacey & ")"
Print "(" & Spacey & ")"
PRINT "(" & RTRIM(Spacey) & ")"
Print "(" & RTrim(Spacey) & ")"
</pre>
</pre>


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


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


'''Related Items'''
== Related Items ==
 
[[ltrim|LTrim]], [[trim|Trim]]
 
[[Category:Language Reference]]
 
[[Category:Strings]]


[[ltrim|LTRIM]], [[trim|TRIM]]
[[Category:BASIC Functions]]

Latest revision as of 15:33, 25 March 2019

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

RTrim(string)

Description

RTrim returns string with all trailing spaces removed. The required parameter, string, is any valid string expression.

Example

Rem RTrim Example
'RTrim trims all trailing spaces
Dim Spacey
Spacey = "K "
Print "(" & Spacey & ")"
Print "(" & RTrim(Spacey) & ")"

Output

(K )
(K)

Related Items

LTrim, Trim