CharToNum Function


the charToNum of <character> or


The charToNum function returns the equivalent numerical (ASCII) value of a character.


This function is useful for determining the case (upper or lower) of a character: uppercase letters have ASCII values from 65 to 90; lowercase letters have ASCII values from 97 to 122.


Create a field and name it "text". Now create a button, name it "CharToNum", and add the following handler to the button's script: on mouseUp put the CharToNum of field "text" end mouseUp Type a letter, number, or punctuation mark in the field, then click on the button. The equivalent ASCII value appears in the Message Box.
This text has been mechanically extracted from the Oracle Media Objects MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.