1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-06-29 11:40:38 +00:00
QB64-PE/internal/help/RTRIM$.txt
SteveMcNeill 33adc04fc4 Add temp folder to repo. It's necessary as well!
Just more initial setting on... nothing much to see here.
2022-04-28 13:39:56 -04:00

40 lines
1,012 B
Plaintext

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:
{{CodeStart}}{{Cl|PRINT}} {{Cl|RTRIM$}}("some text") + "."
{{Cl|PRINT}} {{Cl|RTRIM$}}("some text ") + "."
{{Cl|PRINT}} {{Cl|RTRIM$}}("Tommy ")
{{CodeEnd}}
{{OutputStart}}some text.
some text.
Tommy
{{OutputEnd}}
{{PageSeeAlso}}
* {{KW|LTRIM$}}, {{KW|STR$}}
* {{KW|LSET}}, {{KW|RSET}}
{{PageNavigation}}
<