EasyManua.ls Logo

AMSTRAD CPC464 - AMSTRAD BASIC Keywords; Cls; Print

AMSTRAD CPC464
249 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Type in:
run [ENTER]
On the screen you will see:
Syntax error in 10
10 printt “abc”
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:
print "hello" [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 [ENTER] key was pressed. Type in Cls [ENTER] to clear the screen.

Table of Contents

Other manuals for AMSTRAD CPC464

Related product manuals