VTech Power Pad Precomputer Power Pad Plus User Manual page 60

Vtech precomputer power pad plus user's manual
Table of Contents

Advertisement

ASC(A$)
The ASC statement will return the ASCII code, a code for representing alphanumeric
information, for the FIRST character of the specified string.
string specified. Refer to the appendix of THE ASCII CODE TABLE (Page 72). For example,
the ASCII decimal value of "X" is 88.
Example:
10
X=ASC("ROY")
20
PRINT X
RUN
82
CHR$ (N)
This statement works the opposite way as the ASC statement. The CHR$ statement will
return the string character which corresponds to the given ASCII code. The argument may
be any number from 32 to 127 or any variable expression with an integer value within
that range.
Brackets must be put around the argument.
Example:
30
PRINT CHR$(68)
RUN
D
GOSUB...RETURN
Line#
GOSUB first line number of subroutine.
Line#
Line#
Line#
Line#
first line number of subroutine
Line#
Line#
RETURN
The GOSUB command tells the computer to GOTO another line number. After the process
has been completed, a RETURN statement is used to send the computer back to the line
immediately after the GOSUB. These statements are used to process a series of commands
that are frequently used.
If A$="XAB", then ASC (A$)=88.
56
Brackets must enclose the

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents