AT&T 6300 Programmer's Manual page 173

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

Syntax
Remarks
Example
ASC
Function
Returns the ASCII decimal code for the first
character of a given string.
ASC (stringexp)
The ASC function returns the ASCII code (0-
255) corresponding to the first character of the
string expression. See Appendix A for a
complete list of all ASCII codes.
If
"stringexp" is null, an "Illegal function
call" error is returned.
See the CHR$ function, later in thic chapter,
for ASCII-to-string conversion. CHR$ is the
inverse of the ASC function.
The following example shows that the ASCII
code for capital letter "T" is 84.
10 XS
=
"TEST"
20 PRINT ASC(XS]
RUN
84
Ok
7-17

Advertisement

Table of Contents
loading

Table of Contents