EasyManuals Logo

Sinclair QL User Manual

Sinclair QL
422 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #371 background imageLoading...
Page #371 background image
44
IF Allows a specified condition to control sUbsequent processing.
Syntax:
if
nexp
:
[:
else :
..
] :
endif
Without else.
If
the expression
IS
non-zero, the following statements are executed.
If
the expression
is
zero execution transfers to the statement following endi!.
With else.
If
the numeric expression
is
non-zero, the statements between if and else are
executed. Otherwise the statements between else and endif are executed.
In
either
case execution continues with the statements following endif.
IMPORT Reads a
file,
name!, exported from
QL
Abacus
or
OL
Easel
and
produces an Archive
data
file name2.
As
with open and look you have the option of specifying a logical
file
name for the data
file.
Syntax:
import
name! as name2 !logical Ifni
where: name!: =
fnm
name2:=
fnm
See the Information section for a full description of import and export.
INK Sets the foreground colour for all following text to the colour specified
by
the value of
the expression.
Syntax:
ink
nexp
The colours are: 0 and 1 black
2 and 3 red
4
and
5 green
6 and 7 white
If
the expression evaluates to more fhan
7,
the value taken
is
the remainder after division
by
8,
for example ink 9
is
equivalent to ink
I,
both setting the print colour to black.
ij
Ink
is
used within a print
command
it
will only change the print colour for the duration
of
that command.
INPUT Requests input from the keyboard to the variables listed
in
the command. Each variable
in
an Input list
may
be
preceded
by
a initial string which
will
be
displayed as a prompt
for the
input
All Input items must be separated from each other by semicolons.
If
the
list has a final semicolon, the cursor will not move to a new line after the
input
Syntax: input [
var
I
s./JI
Iptm *[ ; var I
slit
I ptm ] *][ ; I
The list of input Items may include the cursor-positioning items
at
line,column
tab column
where: Itne:=nexp,
column:=n.exp
The first of these positions the cursor at the specified line
and
column position,
and
tab moves the cursor
to
the specified column within the current
line.
If
the cursor
is
already
to the right of the specified column, tab will have no effect
These two items may not be used
outside an input
or
a print command.
You
may
also use ink and paper as input items.
If
used within an input
command
they
will only affect the ink and paper colours to the end of the input, when the colours
will
return
to
thelf original settings.
INSERT Adds a new record
10
a
liIe.
Syntax: insert
Uses the current screen layout to display the current values of the variables.
You
can
type a new value for
anyone
or
more fields of the current file whose values are shown
in the screen layout Note that
it
is
not necessary for all the field variables to be shown.
You
cannot type a value for a field that
is
not shown.
ij
none of the field variables
appear
In
the screen, Archive forces a display of the
liIe.
12/84

Other manuals for Sinclair QL

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sinclair QL and is the answer not in the manual?

Sinclair QL Specifications

General IconGeneral
ProcessorMotorola 68008
Clock Speed7.5 MHz
RAM128 KB (expandable to 640 KB)
ROM48 KB
Operating SystemSinclair QDOS
Release Year1984
StorageMicrodrive tape loop
Graphics256x256 pixels, 8 colors
PortsRS-232, ROM cartridge
SoundBeeper (internal speaker)

Related product manuals