Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multidimensional Array
Message
From
05/02/2002 14:46:08
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00615684
Message ID:
00615706
Views:
16
>That would be acceptable if the array element count was consistant
>
>The Array will be re-dimentioned according tosome of the element values.
>
>This may not be possable -

Then create a cursor or table. Instead of three array subscripts, use three fields. Create a combined index, on the three fields, for fast access.

If you don't need all elements, create a function that will read from the cursor. If the element is not found, return zero (assuming your data is of type "N"). To store the value, the function should create non-existent elements.

You mentioned pages. Another option is to create one array for each page. You could redimension each individual array. Perhaps you need macro substitution to generate and access the names for the individual arrays.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform