Skip to main content

Asc()

The Asc() function will return the ASCII code for the character.  It a string is placed in the function it will only return the ASCII code for the first character.

Script

Sub Main
    Dim myString As String
    myString = "ABC"
    MsgBox Asc(myString) 'returns 65 which is "A"

End Sub

IDEAScript Language