Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controlling another form from current form
Message
De
02/11/1999 16:23:14
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00284853
Message ID:
00285742
Vues:
22
>Ok, I create an object in FormA in the init procecedure as following
>
>&&FormA.init
>oform = createobject('cls_timerform')
>
>As soon as my FormA init procedure ends, my object is destroyed. oform has a timer that I am trying to keep go until I oform.release(). How do I keep the object (oform) alive until I am ready to release it? Thaks for the reply
>
>
>Nick Patel

Either make oform a PUBLIC variable (not really recommended) or make oform a property of FormA. If you make it a property of FormA then you would create your timer object like this:

FormA Init:
this.oform = createobject('cls_timerform')
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform