Method: RightB for VBS
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: RightB for VBS
Method: RightB for VBS
Returns a certain number of bytes from the last character of a text onwards.
vRightB = Object.RightB(string, length)
| Object | VBS Object with this method. You do not need to specify this object. |
| string | Variant Specifies the text. |
| length | Variant Specifies the number of bytes to be returned. |
| vRightB | Variant Receives the returned text. |
The following example returns the last six bytes of the text DIAdem.
Dim MyString MyString = RightB("DIAdem", 6) Call MsgBox(MyString) ' Returns "dem"