mbord()

Availability

Flash Lite 1.0.

Usage

mbord(character)

Operands

character The character to convert to a multibyte number.

Description

String function; converts the specified character to a multibyte number.

Example

The following examples convert the characters in the myString variable to multibyte numbers:

myString = "A";
trace ("ord = " add mbord(myString));                            // Output: 65

myString = "$120";
for (i=1; i<=length(myString); i++) 
    char = substring(myString, i, 1);
    trace ("char ord = " add mbord(char));                        // Output: 36, 49, 50, 48
}

See also

mbchr(), mbsubstring()