Character to code CHAR → CODE

Dest = the character's code, like "A" → 65.

TagAfter two scans
Letter'A'
LetterCode65

How it's used

Use it to check a character, such as whether a key is a digit.

TagValue
Key'7'
KeyCode55
IsDigit1

Digits are codes 48 to 57. 7 is 55, so IsDigit is on.

Operands

OperandData typeRead or write
SourceCHAR or a numberReads
DestDINTWrites

Common mistakes

  • Expecting the digit's valueThe character 7 gives its code, 55, not 7.