Amstrad Basic Keywords; Cls; Print - AMSTRAD CPC464 User Manual

Cpc464 colour personal computer 64k
Hide thumbs Also See for CPC464:
Table of Contents

Advertisement

Type in:
run [ENTER]
On the screen you will see:
S y n t a x e r r o r i n 1 0
1 0 p r i n t t " a b c "
This message tells you in which line the error has occurred, and displays the program line together
with the editing cursor so that you can correct the mistake.
Press the cursor right key [+] until the cursor is over the t in printt . Now press the [CLR] key to
remove the unwanted t, then press the [ENTER] key to enter the corrected line into the computer.
Type in: run [ENTER] . ..and you will see that the computer has accepted the instruction, and has
printed abc
An introduction to

AMSTRAD BASIC keywords

In Chapter 8 you will find an illustrated description of all the
BASIC keywords found in the AMSTRAD BASIC. We will
introduce some of the more commonly used BASIC keywords in
this section.

CLS

Type in: cls (clear screen). You can use either upper case (capital) or lower case (small) letters. Then
press [ENTER]. You will notice that the screen clears and the word Ready with the cursor ? will
appear at the top left of the screen.

PRINT

This is used whenever you want characters, words or figures in a program to be printed on the
screen. Type in the following instruction line:
p r i n t " h e l l o "
[ENTER]
On the screen you will see:
hello
The quotation marks " " are used to tell the computer what should be printed. Hello appeared on the
screen as soon as the
key was pressed. Type in
to clear the screen.
[ENTER]
Cls [ENTER]

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents