Structured one dimension Array

Cableguy

Expert
Licensed User
Longtime User
Hi

I'm reading data from a file(ini) wich as the follwing data:

peaches-20
aples-15
bananas12

I defined an array like this:

Dim Type(Fruit,Quantity) Basket(3)

Now I whant to populate the array with the data read from the file
Since this is a finite and short list I am reading line-by-line, but how do I populate the array?

I tryed this
r=FileRead(c1)
Basket(0)=StrSplit(r,"-")

But it return an error message saying that basket is not a one dimension array...

Help?!
 
Top