Returns an Integer representing the character code corresponding to the first letter in a string.
Asc([string]) |
The optional string argument is any valid string expression. If this argument is omitted, is a non-initialized variable, or Null, the function returns 0.
Remarks
The range for returns is 0 – 255 on non-DBCS systems, but –32768 – 32767 on DBCS systems.
Dim MyNumber MyNumber = Asc("A") ' Returns 65. MyNumber = Asc("a") ' Returns 97. MyNumber = Asc("Apple") ' Returns 65. |
See Also |
Chr Function, Type Conversion Functions |