EasyManuals Logo

Tandy 1000 Basic Reference Manual

Default Icon
411 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 #192 background imageLoading...
Page #192 background image
Chapter
10
I
BASIC
Keywords
KEY/Set/Display Statement
KEY
number,string
KEY
ON
KEY
OFF
KEY
LIST
KEY
number,string
Assigns or displays function key values.
Number
is an integer in the range
1
to
12 that indicates the
function key being defined
(m
-[I.
String
is the string expression assigned
to
the key and may con-
tain a maximum
of
15 characters.
You can program the function keys on your computer to generate
a specific string
of
characters. When you press the key, BASIC
displays the string on the screen just
as
if you had typed every
character. Initially, the function keys have these values:
F1 LIST F7 TRONm
F2 RUN= F8 TROFF-
F3 LOADā€œ F9 KEY
F4 SAVEā€œ F1O SCREEN 0,0,0
[ENTERI
F5 CONT- F11 none
F6 ,ā€œLPTl:ā€m F12 none
Function keys
11
and 12 do not have initial values. You can use
the KEY statement to define these keys. You also can use the
KEY statement
to
redefine the other function keys
so
that
BASIC displays the strings you use most often.
You can remove the string from a function key by assigning it a
string length
of
zero
(ā€œ ā€).
For example:
KEY
1
,
ā€œā€˜I
Key no longer has
a
string assigned to it. Moreover, assign-
ing
a
null string (length zero)
to
a function key disables it as a
soft key. If the
soft
key is disabled, INKEY$ returns a 2-byte
string. See Appendix D
for
more information.
190

Table of Contents

Other manuals for Tandy 1000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tandy 1000 and is the answer not in the manual?

Tandy 1000 Specifications

General IconGeneral
ProcessorIntel 8088
Processor Speed4.77 MHz
RAM128 KB (expandable to 640 KB)
Operating SystemMS-DOS 2.11
ManufacturerTandy Corporation
Release Year1984
StorageSingle or double 5.25" floppy disk drive (360 KB), optional hard drive
SoundTandy 3-voice sound
PortsParallel, Serial
GraphicsCGA (Color Graphics Adapter)
Graphics Modes320x200, 640x200

Related product manuals