Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Right - function of language VBScript

Description:
Returns a specified number of characters from the right side of a string.
Syntax:
Right(string As String, length As Integer) As String
Calling:
s = Right(string, length)
Parameters:
string(String) String expression from which the rightmost characters are returned.
length(Integer) Numeric expression indicating how many characters to return. If 0, a empty string ("") is returned. If greater than or equal to the number of characters in string, the entire string is returned.
Note:
To determine the number of characters in string, use the Len function.
Example:
Dim sAnyString, sStr
sAnyString = "Hello World"
sStr = Right(sAnyString, 1) ' Returns "d"
sStr = Right(sAnyString, 6) ' Returns " World"
sStr = Right(sAnyString, 20) ' Returns "Hello World"
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice