Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Three dimensional Array
Message
De
25/05/2006 17:05:29
 
 
À
25/05/2006 17:02:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01125053
Message ID:
01125081
Vues:
20
>>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform