Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multidimensional Array
Message
De
05/02/2002 14:46:08
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00615684
Message ID:
00615706
Vues:
17
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform