Syntax 

Asc(S$)


Group 

String 


Description 

Return the ASCII value.

Note: A similar function, AscW, returns the Unicode value. Another similar function, AscB, returns the first byte in S$.


Parameters

Description

S$ 

Return the ASCII value of the first char in this string value.


See Also 

Chr$( )


Example

Sub Main

    Debug.Print Asc("A") ' 65

End Sub