Reverse
Description:
Format:
Reverse (string Source)
|
Parameters: |
Stringr |
Source |
Source string from which to reverse the characters. |
|
Return Value: |
String |
Result |
String consisting of the reversed characters. |
Usage:
Example 1:
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))