Asc Function

Top  Previous  Next

 

Function:

Returns the ASCII code of the leftmost character of the string.

Syntax:

asc(byref sourcestr as string) as byte

See Also:

Chr

 


Part

Description

sourcestr

Input string; the function will return ASCII code of the leftmost character of this string.

Details

---

Examples

 

x = asc("123") ' result will be 49 (ASCII code of '1')