Tandy 1000 Basic Reference Manual page 135

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter
10 I
BASIC Keywords
Examples
DATA NEW Y O R K ,
C H I C A G O , LOS A N G E L E S ,
P H I L A D E L P H I A , D E T R O I T
stores 5 string data items. Quotation marks are not needed since
the strings contain no delimiters and the leading blanks are not
significant.
DATA 2 . 7 2 ,
3 . 1 4 ,
0 . 0 1 7 4 5 ,
5 7 . 2 9 5 7 8
stores
4
numeric data items.
DATA " S M I T H ,
T . H . " , 3 8 ,
"THORN,
J . R . " , 4 1
stores both types of constants. Quotation marks are required
around the first and third items because they contain commas.
Sample Program
1 0 PR
I
NT
"C
I
T Y "
,
" S T A T E " ,
" 2
I P "
2 0 READ
C S , S $ , Z
3 0 DATA "DENVER
,",
COLORADO, 8 0 2 1 1
4 0 P R I N T C S , S S , Z
This program reads string and numeric data from the DATA
statement in Line 30.
133

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents