AT&T 6300 Programmer's Manual page 421

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

Example
Example
PRINT# and PRINT# USING
Statements
String expressions inust be separated by
semicolons in the list. To format the string
expressions correctly on the disk, use explicit
delimiters in the list of expressions.
Let A$=="CAMERA" and B$='93604-1'.
The statement:
100 PRINT#1,AS;BS
writes CAMERA93604-1 .to the disk. Because
there are no delimiters, this could not be input
as two separate strings. Insert explicit
delimiters into the PRINT# statement as
follows:
200 PRINT#1,AS;",u;BS
The image written to disk is
CAMERA,93604-1
If the strings themselves contain commas,
semicolons, significant leading blanks,
carriage returns, or line feeds, write them to
disk surrounded by explicit quotation marks,
CHR$(34).
100 AS
=
"CAMERA, AUTOMATICu
200 BS = "93604-1
U
300 PRINT#1,AS;BS
Writes the following image to disk:
CAMERA, AUTOMATIC 93604-1
7-265

Advertisement

Table of Contents
loading

Table of Contents