Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Method firing before form appears
Message
From
30/10/2001 09:58:08
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
To
29/10/2001 23:44:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00574873
Message ID:
00575027
Views:
22
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform