Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax for array class
Message
De
22/11/2002 11:44:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
21/11/2002 20:15:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00724996
Message ID:
00725838
Vues:
13
I arbitrarily fixed the maximum number of dimensions at 10. I don't think any serious programming will every use that many dimensions. The user can easily extend this to 26 dimensions, though (oArray.Put(Value, Dim1, ... Dim26). Making the change to the alternative syntax you show is easy, too - but not really necessary, I believe.

Hilmar.

>Is there a max dimension count?
>
>* 4 dimensional call
>oArray.PutValue(date(), 2, 1, 5, 8)
>* 5 dimensional call
>oArray.PutValue(date(), 2, 1, 5, 8, 3)
>* etc.
>
>
>Eventually you run out of parameters. of course, at that point, I pity the person coding that array.... ;)
>
>The only alternate I can think of which doesn't limit you is to make the dimensions a single delimited string parameter,e.g.
>
>* 3 dimensional call
>oArray.PutValue(date(), "2,1,5")
>
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
Répondre
Fil
Voir

Click here to load this message in the networking platform