Avisaro Online Documentation - Wiki
Impressum Kontakt Sitemap

ASC

Description

The ASC function converts the first character of a string into a numerical value, also known as ASCII value. All characters in the string other than the first one are ignored.

Example

outmode -2
print asc ("A")
print asc ("B")
print asc ("C")

This example prints the ASCII values of the first three capitals.

Remarks

To convert others than the first character, use the string extraction functions MID$, LEFT$ and RIGHT$ before. The inverse function of ASC is CHR$. Please see also the CHR$ page.