ord()
Top  Previous  Next


SWiSH Player Support
SWF4 or later - Supported Internally

Syntax
ord(char)

Arguments
char: Character or string.

Returns
The ascii code of the 1st character.

Description
String function. Converts characters to ASCII code numbers.

Sample
myVar = ord("AB");   // myVar now contains 65, the ASCII code for 'A'


See Also
chr and String.charCodeAt().