# Function Reference

# Asc

Returns the ASCII code of a character.

Asc ( "char" )

## Parameters

char | The character to get the code for. If a string is used, the code for the first character is given.

## Return Value

Returns the ASCII code of the specified char.

## Remarks

See the ASCII Character Code table for a complete list of available values.
Asc("0") == 48, Asc("9") == 57, Asc("A") == 65, Asc("Z") == 90, Asc("a") == 97, Asc("z") == 122, etc.

## Related

AscW, Chr, ChrW

## Example

    #include <MsgBoxConstants.au3>

    Local $iCode = Asc("A")
    MsgBox($MB_SYSTEMMODAL, "", "ASCII code for A: " & $iCode)