Asc

Returns the ASCII code of the first character in a string

Keywords

Parameters & Returns

Parameters

This function takes no parameters.

Returns

Int

Quick Summary

Returns the ASCII code of the first character in a string

Technical Exegesis...

Returns the ASCII code of the first character in a string. Takes a string and returns the numeric ASCII value of its first character. For example, Asc(\"A\") returns 65. Returns 0 for empty strings. Useful for character comparisons, encoding, or analyzing text character by character.

Example

Example.bam
Print ToString(Asc(\"A\"))