Asc

Top  Previous  Next

function Asc(As Char) As Integer

 

' -or-

 

function Ord(As Char) As Integer

 

Returns an Integer value representing the character code corresponding to a character.

 

Parameters

 

s ... Any valid Char or String expression. If s is a string expression, only the first character of the string is used for input.

 

Example:

Dim i

 

= Asc("A")

' returns i = 65

 

= Asc("ABC")

' returns i = 65




Translate document: