DiGrande.it
Braille and Technologies for Visual Impairment

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

Parameters:

- (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.

Description:

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.

Examples:

// 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

MsgBox(T)