Asc Function

Syntax

Asc(S$)

Group

String

Description

Return the ASCII value.

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

Parameter 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