Reverse

Description

Reverses the order or characters in a string.

Syntax

Reverse ( string )

Argument

Description

string

A string whose characters you want to reorder so that the last character is first and the first character is last.


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:

string ls_name
ls_name = Reverse(sle_name.Text)

See also

IsArabic

IsHebrew