comp • gb • string • right

String.Right (gb)

Static Function Right ( String As String [ , Length As Integer ] ) As String

Returns the Length last characters of an UTF-8 string.

If Length is not specified, the last character of the string is returned.

If Length is negative, all the string except the (- Length ) first characters are returned.

This function deals with UTF-8 strings, and so all positions and lengths are given in characters and not in bytes. To manipulate ASCII strings, use Right$