JG>How does one integrate an array into a TYPE structure?
JG>I know this, so far...
JG>Syntax: DIM variable(x to y) as type
JG>Example: DIM card(1 to 4) as Byte
JG>Ok, it's been dimensioned. Now, what do I do *next* to work this into
JG>my TYPE structure, so I *don't* have to do this (using above example):
JG>Type Cardfile ' stupid way of doing it
JG> card1 as Byte
JG> card2 as Byte
JG> card3 as Byte
JG> card4 as Byte
JG>END TYPE
Yo can use:
Dim Variable(x) as Cardfile
and then, to get the values, with:
x1 = variable(1).card1
x2 = variable(1).card2
Deu .
Esteve Valenti
* Wave Rider 1.20 [NR] *
... UNREGISTERED EVALUATION COPY
--- Wave Rider v1.20
(757:101/24)
---------------
* Origin: Clot BBS 34-3-2324070 (A 14K4) / 34-3-2654579 (A 28K8)
|