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 #271 background imageLoading...
Page #271 background image
Chapter
10
I
BASIC Keywords
POS
Function
POS(
number)
Returns the current column position
of
the cursor.
Number
is a dummy argument.
POS returns
a
number in the range
1
to
80, indicating the cur-
rent cursor-column position on the display.
Example
PRINT TFIB(40) POS(0)
prints 40. The PRINT TAB statement moves the cursor
to
Posi-
tion 40; therefore, POS(0) returns the value 40. (However, be-
cause a blank
is
inserted before the “4”
to
accommodate the
sign, the “4” is actually
at
Position 41.)
Sample Program
150 CLS
160 FIF
=
INKEYF
170
IF
A$
=
I”’
THEN 160
180
IF
POS(X)
>
70 THEN IF
A$
=
CHRF(32) THEN
FIB
=
CHRF(13)
200 LPRINT
FIB;
210 GOT0 160
This program lets you use your printer as
a
typewriter (except
that you cannot correct mistakes). Your computer keyboard
is
the typewriter keyboard. Everything you type is printed on your
printer. The program also makes sure that no word is divided
between two lines.
269

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