ord
Previous  Top  Next

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().