StringRight- Returns a substring by taking it from the right side of the string
Function that returns the substring of the specified length from the right part of the string.
- StringRight(S,N): string
- (string) S: String from which the substring is to be copy;
- (int) N: Number of characters to be taken from the right side of the string.
Use the StringRight function to copy N characters from the right side of the S string. The instruction is a help, also available with the StringCopy and StringLength instructions.
// Create a string variable
S = "Biblos"
// Returns the last three characters of the string S
T = StringRight(S,3)
// The variable T contains the string: los