Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax for array class
Message
From
22/11/2002 11:44:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
21/11/2002 20:15:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00724996
Message ID:
00725838
Views:
12
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform