Right

Description:
Return characters from the Right side of a string for a specified number of characters.

Format:
Right (string Source, integer Length)

Parameters:

Stringr

Source

Source string from which to copy characters.

Integer

Length

Number of characters to copy from Source.

Return Value:

String

Result

String consisting of copied characters.

Usage:
Use this function to get characters from the Right end of a string.

Example 1:
Assign strResult the last 5 characters from the current document's title.

String strResult

strResult = Right(GetDocumentTitle(), 5)

Example 2:
Find the last phrase in a comma delimited list. Reverse the string to find the position and then Reverse the results back to normal.

String strPhrase
String strResult

strPhrase = 'Super Widgets, Long Widgets, Soft Widgets'
strResult = Reverse(Left(Reverse(strPhrase), Pos(Reverse(strPhrase), ',') - 1))

Hosted by www.Geocities.ws

1