Examples: RTrim function
Dim trimRight As String
trimRight$ = RTrim$(" abc ")
Print trimRight$
Print Len(trimRight$)
' Output:
' abc
' 6
' The string " abc" is assigned to trimRight.
' Note that the leading spaces were not removed.
Dim trimRight As String
trimRight$ = RTrim$(" abc ")
Print trimRight$
Print Len(trimRight$)
' Output:
' abc
' 6
' The string " abc" is assigned to trimRight.
' Note that the leading spaces were not removed.