Rtrim: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Brendon (talk | contribs)
No edit summary
Brendon (talk | contribs)
No edit summary
Line 1: Line 1:
RTRIM(''string'')
RTrim(''string'')


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


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


'''Example'''
== 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 23:
</pre>
</pre>


'''Related Items'''
== Related Items ==


[[ltrim|LTRIM]], [[trim|TRIM]]
[[ltrim|LTRIM]], [[trim|TRIM]]
[[Category:Language Reference]]

Revision as of 03:02, 17 August 2012

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