Right
Description:
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:
Example 1:
Assign strResult the last 5 characters from the current document's title.
String strResult
strResult = Right(GetDocumentTitle(), 5)
Example 2:
String strPhrase
String strResult
strPhrase = 'Super Widgets, Long Widgets, Soft Widgets'
strResult = Reverse(Left(Reverse(strPhrase), Pos(Reverse(strPhrase), ',') - 1))