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:
00450012
Vues:
29
>>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.
>>
>
>Using a member property avoids any possible side-effects normally found with a PUBLIC anything - the odds are that you're issuing a PRIVATE statement using a wildcard that hides the array, or are deallocating the array using RELEASE in an unexpected location. With member property arrays, the reference is scoped to the object (in your case, a Form) and won't suffer side-effects found with PUBLIC/PRIVATE memvars.

Do this use any more memory in VFP or is it the same or is it less?
TIA
Shawn
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform