Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6 - Instantiate Object Multiple Times?
Message
De
22/08/1999 15:08:02
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00256420
Message ID:
00256428
Vues:
24
>I am using the Registry class that comes with VFP6. I make Registry changes through this. Anyway, I end up doing this:
>
> #include registry.h
> loRegistry = NewObject( "Registry", "Registry.VCX" )
>
>Once in my form.init, button1.click, and button2.click. I am sure I am wasting memory and maintenance. How can I get this going just one time and call it repeatedly?

Add a property to your form, then use it instead of a variable.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform