Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Public Arrays Versus Form Arrays
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00449998
Message ID:
00450005
Vues:
20
>Has anybody seen a difference in mem usuage between a public array versus a form array.
>
>The issue is that we have some arrays created in a form on NT WrkStn 4 and sometimes depending on the amount of applications the user has open arrays get destroyed...We get a FoxPro msg saying myarray.prg doesn't exist although myarray was declared public on the form.
>
>Does anybody now if going to form arrays will solve this or is the best method to use a cursor.
>

You should avoid using public variables as much as possible in VFP. It's not a memory issue, but rather a design issue. It's better design to use form properties for things which need to be accessible throughout the form.

Arrays v. Cursors depends on how much data you're talking about.

>TIA
>Shawn
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform