Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Three dimensional Array
Message
From
25/05/2006 17:05:29
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01125053
Message ID:
01125081
Views:
15
>>>>A 3 dimensional array would be something like this:
>>>>
>>>>DIMENSION xyz[a,b,c]
>>>>
>>>>
>>>>Think of being able to reference a single element like an array of books, the page in a book, and a word on that page in the book.
>>>
>>>Great sample. I was trying to imagine 3 dimensions as time, x & y and it didn't work.
>>
>>You could extend this to even more dimensions:
>>
>>4th - libraries
>>5th - cities
>>6th - countries
>>
>>etc.
>>
>>You could then reference with a single array, any word on any page in any book in any library in any city in any country.
>
>When I need such array dimensions I prefer to use cursor ;-)

That's certainly the easier way to do it. Also doesn't require quite so much RAM. ;)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform