Method: RTrim for VBS
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: RTrim for VBS
Method: RTrim for VBS
Deletes trailing blanks in a text.
vRTrim = Object.RTrim(string)
| Object | VBS Object with this method. You do not need to specify this object. |
| string | Variant Specifies the text. |
| vRTrim | Variant Receives a text without trailing blanks. |
The following example deletes trailing blanks in a text:
Dim MyString MyString = RTrim(" DIAdem ") Call MsgBox(MyString) ' Returns " DIAdem"