Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Redimensioning
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Redimensioning
Divers
Thread ID:
00005593
Message ID:
00005593
Vues:
83
I am facing a situation where a variable number of a particular object will be created (1 to x, x can be very large). The various instances of the object will be referenced by an array (myObject[x]). I was wonder if anyone had input on the best way to initialize the array and subsequently "grow" or "shrink" it as the application progresses. My first thought is to dimension it to 1 and then redimension every time the array size changed. I am new to VFP so I am not sure where the performance/size benefit trade off occurs when dimensioning an array.

Thanks,
John Morrison
"Not everything that counts can be counted,
and not everything that can be counted counts"
-A. Einstein
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform