View Single Post
  #44 (permalink)  
Old 07-06-2009, 04:47 PM
agraham's Avatar
agraham agraham is offline
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by enonod View Post
More ineligant to step through a retrieved structure
No, you can treat a structure as an array to iterate it if you want. The structure definition still serves to document the items.

Code:
Dim Type(x1, y1, z1, x2, y2, z2, x3, y3, z3, name)Data
...

Dim Data(10' new array
For i = 0 to 6 Step 3
  Data(i) = something 
' set Data.x1, Data.x2. Data.x3
  Data(i+1) = something ' set Data.y1, Data.y2. Data.y3
  Data(i+2) = something ' set Data.z1, Data.z2. Data.z3
Next
Data(
9) = somename ' set Data.name
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote