Reverse
PowerScript function
Description
Reverses the order or characters in a string.
Syntax
1 |
Reverse ( string ) |
Argument |
Description |
---|---|
string |
A string whose characters you want to reorder so that |
Return value
String. Returns a string with the characters of string in reversed
order. Returns the empty string if it fails.
Usage
Reverse is useful with the IsArabic and IsHebrew functions, which
help you implement right-to-left character display when you are using a
version of Windows that supports right-to-left languages.
Examples
Under a version of Windows that supports right-to-left languages,
this statement returns a string with the characters in reverse order from
the characters entered in sle_name:
1 2 |
string ls_name ls_name = Reverse(sle_name.Text) |
See also