2015-08-02 12:12:44 +00:00
|
|
|
The {{KW|RTRIM$}} function removes trailing space characters from a {{KW|STRING}} value.
|
|
|
|
|
|
|
|
|
|
|
|
{{PageSyntax}}
|
|
|
|
:{{parameter|return$}} = {{KW|RTRIM$}}({{Parameter|value$}})
|
|
|
|
|
|
|
|
|
|
|
|
{{PageDescription}}
|
|
|
|
* {{Parameter|value$}} is the {{KW|STRING}} value to trim.
|
|
|
|
* If {{Parameter|value$}} contains no trailing space characters, {{Parameter|value$}} is returned unchanged.
|
|
|
|
* Convert fixed length {{KW|STRING}} values by using a different {{parameter|return$}} variable.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{PageExamples}}
|
|
|
|
Trimming a fixed length string value for use by another string variable:
|
|
|
|
{{CodeStart}}
|
|
|
|
name$ = {{Cl|RTRIM$}}(contact.name) ' trims spaces from end of fixed length {{Cl|TYPE}} value.
|
|
|
|
{{CodeEnd}}
|
|
|
|
|
|
|
|
Trimming text string ends:
|
2019-04-15 01:15:33 +00:00
|
|
|
{{CodeStart}}{{Cl|PRINT}} {{Cl|RTRIM$}}("some text") + "."
|
|
|
|
{{Cl|PRINT}} {{Cl|RTRIM$}}("some text ") + "."
|
|
|
|
{{Cl|PRINT}} {{Cl|RTRIM$}}("Tommy ")
|
2015-08-02 12:12:44 +00:00
|
|
|
{{CodeEnd}}
|
|
|
|
{{OutputStart}}some text.
|
|
|
|
some text.
|
|
|
|
Tommy
|
|
|
|
{{OutputEnd}}
|
|
|
|
|
|
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
|
|
* {{KW|LTRIM$}}, {{KW|STR$}}
|
|
|
|
|
|
|
|
* {{KW|LSET}}, {{KW|RSET}}
|
|
|
|
|
|
|
|
|
2019-04-15 01:15:33 +00:00
|
|
|
{{PageNavigation}}
|