Want Your Windows Done? - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

A "
t t t t
11
format template can be used to print a number in exponentialformat.
PRINT USING "###.##t t t t";123.45
12.35E+01
When using print formats for numbers, note that if a number is too long for the
specified
templ~te,
then a % symbol is printed before the result, to indicate that this
has happened, and the result is NOT shortened to fit the specified template.
PRINT USING "####";123456
%123456
Want your windows done? ....
The BASIC of the 6128 provides a comprehensive method for setting up a maximum
of eight text windows. Any of the text screen driving commands may then be directed
to anyone of these windows.
The command that is used to set up a window is, simply enough: WIN DO W. This is
followed by 5 values. The first is optional and is used to specify which window is to be
defined - if omitted, then window zero is assumed, all the normal BASIC prompts and
inessages (for example, 'Re a dy') are produced in window zero. The hash symbol
(#)
precedes this number to identify it as being a stream director. The next four numbers
specify the left, right, top and bottom limits of the window. These values are column
and row numbers, so they must lie in the range 1 to 80 for left/right and 1 to 25 for
top/bottom.
The following example will define WIN D 0 W (stream) number 4 to start in column 7
(left) and go on to column 31 (right), and to start at row 6 (top) and go down to line 18
(bottom). Reset the computer then type:
WINDOW #4,7,31,6,18
Nothing will appear to have happened after this command, however, try typing the
following:
INK 3,9
PAPER #4,3
C LS
#4
This will cause a large green rectangle to appear on the screen, and this is window
number 4. The above also shows that PAP E Rand C L S may be used with anyone of
the eight windows by the inclusion of a stream director; its omission causes the
command to operate on window 0 - the default window.
Chapter 9 Page 26
At your leisure ....

Advertisement

Table of Contents
loading

Table of Contents

Save PDF