Cicode Programming Reference > Cicode Function Categories > String Functions > StrToChar

StrToChar

Gets the ASCII code of the first character in a string.

Syntax

StrToChar(String)

String:

The source string.

Return Value

The ASCII code of the first character in String.

Related Functions

StrGetChar

Example

Variable=StrToChar("ABC");
! Sets Variable to 65 (ASCII "A").

See Also

String Functions, Using the Caret Escape Sequence Character

Published June 2018