DiGrande.it
Braille and Technologies for Visual Impairment

CharToNum- Converts the character into its Unicode code

Function that converts the passed character as parameter in the relative Unicode code.

- CharToNum(C): int

Parameters:

- (string) C: character to be converted into the relevant Unicode code.

Description:

Use the CharToNum function to convert the passed character as string into its Unicode code. If string C contains more than one character, only the first character is converted.

Examples:

// Stores the Unicode code of the letter B in variable N

N = CharToNum("B")

MsgBox(N)