Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Method firing before form appears
Message
De
30/10/2001 09:58:08
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
 
À
29/10/2001 23:44:48
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00574873
Message ID:
00575027
Vues:
21
>I have a form method that I need to run to determin if a button is enabled or not. I have the method firing in the init of the form. The method looks at some folders then displays a messagebox if necessary. Anyway around this?

Steve,

You can place the code in the Activate event if you want it to run after the form has been displayed. Make sure you add a property to the form like .lOneTime, intialize it to .T. and in your activate method:
IF this.lOnetime
	this.lOnetime = .F.

** place original init() code here

ENDIF
That way the code will only run the first time the form is activated.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform