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 #338 background imageLoading...
Page #338 background image
Chapter
10
I
BASIC Keywords
VARPTR$
Function
VARPTR$(
uaria
ble)
Returns a character form
of
the memory address
of
the variable.
VARPTR$ is primarily used with PLAY and
DRAW
in programs
that are later executed.
Variable
is a numeric or string variable.
VARPTR$ returns a 3-byte string:
byte
0
=
type
byte
1
=
low
byte
of
address
byte
2
=
high
byte
of
address
Type
is
2
for integer variables,
3
for string variables,
4
for single
precision variables, and
8
for double precision variables.
Note:
Because array and string addresses and file
data blocks change whenever you assign a new vari-
able, do not store the contents
of
VARPTR$ into a
variable.
Example
10
PLCIY
"X"
+VARPTR$<A$)
uses the PLAY subcommand
X,
plus the contents
of
A$, as the
argument
for
PLAY.
336

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