Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Activate vs init.
Message
De
01/10/1997 18:09:51
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00052234
Message ID:
00052768
Vues:
31
>>>If I declare some variable public, should this go in the init section of a form rather than the activate? Does the activat section get fired every time the form does something then finishes? The init only once?
>>
>>Actually, you should create a new property to hold the value, rather than a PUBLIC variable. If you need the variable after the form is closed, create an application object to hold the property.
>
>In what manner would one create a property to hold a value?
>Like an object, cmdbutton?

New properties can be added to a class or the form. In the form designer, select Form/New Property from the
menu. In the class designer, select Class/New Property.

Craig
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform