Skip to content
Narta Xaymar Dirks edited this page Oct 30, 2026 · 7 revisions

Blitz3DBlitzPlusBlitzBasic

Asc

Asc:Int32 string:String
Parameter Mode Type Default Description
string In String required The text. Only its first character counts.

Returns: A code from 0 to 255, or -1 if the string is empty.

Description

Returns the character code of the first character of a string. It is the opposite of Chr.

Examples

Print Asc("A")
Print Asc("BCD")
65
66

Related Commands

Bin, Chr

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally