Asc Function

Syntax:

Asc(S$)

Group:

String

Description: Returns the ASCII value.

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

Parameters:

Parameter

Description

S$

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

Example:

Sub Main
  Debug.Print Asc("A") ' 65
End
Sub

See Also:

Chr$( ).