String_Right

Returns the specified characters of the input string.

Parameters

String

The string from which to get the characters.

Sequence

The number of characters to get, starting at the beginning of the string.

Format

String_Right (String, Sequence)

Return Value

Returns a string with just the last n characters of the input string. If the input string is less than n characters, the entire string is returned.

Example

Script(String_Right_Test)
String(strEntered)
String(strRightPart)
Activate(From_Menu)
strEntered = Ask_String("Enter some text", "String_Right_Test", 1, 99, "")
strRightPart = String_Right(strEntered, 3)
Ask_OK(strRightPart, "String_Right 3 characters")
Return

See Also

String_Set, String_Combine, String_Left, String_Middle, String_Upper, String_Lower, String_Replace, String_Only_Characters, String_Strip_Characters, String_Trim_Spaces_Start, String_Trim_Spaces_End, Number_To_String_Binary, Number_To_String_Octal, Number_To_String_Decimal, Number_To_String_Hexadecimal_Lowercase, Number_To_String_Hexadecimal_Uppercase, Ask_String, Ask_String_Password, Ask_String_Uppercase, Ask_String_Lowercase, String_Equal

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal