AT&T 6300 Programmer's Manual page 236

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

Advertisement

DIM
Statement
Examples
7-80
To Define an Array
1
Establish the subscript lower bound. Use
OPTION BASE 1 or adopt the default OPTION
BASEO.
2 Assign a name to the array using a DIM
statement.
3 Establish the number of dimensions using the
D1M statement.
4
Establish the subscript upper bounds per
dimension using the DIM statement.
If you do not dimension an array, its implicit
dimensions are the default values described in
remarks.
• a DIM statement cannot be preceded by an
array reference
• a D1M statement does not set the subscript
upper bound per dimension, in case it is
jumped over.
10 DIM A(5),BS(20,30,15)
10lNPUTI
20 DIM ARRAY1(1)
30 FOR K=OTO I
40 READARRAY1(K)
50 NEXT

Advertisement

Table of Contents
loading

Table of Contents