Table of Contents

ugBASIC User Manual

ASC ✓

SYNTAX

   = ASC( string )

PURPOSE

This function returns the internal ASCII code of the first character in a string. If the string is empty, the value returned will be 0.

EXAMPLE

  x = ASC( "UGBASIC" )

See also the following example files:

ABBREVIATION

 Ax

AVAILABLE ON

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY