Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursors vs. Arrays vs. Collections
Message
 
 
À
06/01/2004 13:24:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00864266
Message ID:
00864398
Vues:
12
>I'm preparing a presentation next week for my user group and want some ideas for when to use cursors, arrays, and collections rather than one of the others.

Collections - zero based, good. Arrays always have at least one element so you had to test that first element to see if it was populated. Now that we have collections...

Con for collections - one dimensional. Pro for arrays - multi-dimensional.

One thing I found with collections is that when I use one for storing object references to all my open forms, the collection item for a form is automagically removed when that particular form is released.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform