ASC returns the ASCII value of a byte.

Syntax

ASC(StrExp$)

Arguments 

  • StrExp$ is, in this case, a single byte or string with length 1.

Remarks

  1. If you use a string which is longer than 1 byte, you will get a fatal error message

Examples

ASC("A")

returns

65


ASC("3")

returns

51

Example knowledgebases

Download

An example knowledgebase of this function can be downloaded here.

Description

Input

b$ is the value to be calculated. This should be the single byte string.

Relations

A=ASC(b$)


Quick links: Functions overview | Attribute overview | Constants overview | Dimensions overview

  • No labels