T
Tony M
VS 2008 / VB / XP / Winform
I need to create a status machine.
I need to track 100 items.
Each item has about 8 things to track.
I don't want to use files and records b/c I will constantly be reading and
writing to disk.
I need to look at indexes (1) then maybe indexes (65) in random order. And
update the indexes randomly also.
I guess it looks like 100 records with 9 fields.
I tried
Dim ary(100, 100, 100, 100, 100, 100, 100, 100, 100)
this would work but seems like allot of waste. I will never need to look at.
ary(1,2,1,1,1,1,1,1,1)
or
ary(1,1,1,1,1,1,1,1,2)
only
ary(1,1,1,1,1,1,1,1,1)
ary(2,2,2,2,2,2,2,2,2)
ary(3,3,3,3,3,3,3,3,3)
....
ary(100,100,100,100,100,100,100,100,100)
and so on...
I looked at Jagged arrays, just having a hard time wrapping my head around
it.
Is jagged arrays the way to go or is there a better solution?
One problem is in either case I'm stuck with either numeric or string
indicators.
I can live with that.
Thanks
I need to create a status machine.
I need to track 100 items.
Each item has about 8 things to track.
I don't want to use files and records b/c I will constantly be reading and
writing to disk.
I need to look at indexes (1) then maybe indexes (65) in random order. And
update the indexes randomly also.
I guess it looks like 100 records with 9 fields.
I tried
Dim ary(100, 100, 100, 100, 100, 100, 100, 100, 100)
this would work but seems like allot of waste. I will never need to look at.
ary(1,2,1,1,1,1,1,1,1)
or
ary(1,1,1,1,1,1,1,1,2)
only
ary(1,1,1,1,1,1,1,1,1)
ary(2,2,2,2,2,2,2,2,2)
ary(3,3,3,3,3,3,3,3,3)
....
ary(100,100,100,100,100,100,100,100,100)
and so on...
I looked at Jagged arrays, just having a hard time wrapping my head around
it.
Is jagged arrays the way to go or is there a better solution?
One problem is in either case I'm stuck with either numeric or string
indicators.
I can live with that.
Thanks