Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

ASC returns the ASCII value ASCII value of a byte.

Syntax

ASC(StrExp$)

Arguments 

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

...

  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

...

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

Relations

A=ASC(b$)


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