Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Runs activate again without request,is it a bug???????
Message
From
26/02/2003 17:40:02
 
 
To
26/02/2003 17:33:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00758485
Message ID:
00758489
Views:
16
Kevin,

Activate fires every time the form it is activated *grin* (comes to the top). And with the debugger runnning, I'd bet its going to be activated even more often.

You shouldn't initialize any values in the activate() method. You should use init() or load() method.


>I just got another one of these things, arghhhhhhhh. For some reason some code which has not been changed for a long time gets some strange errors. So I put the de-bug on and step through it, and find that different places in code in different forms will just, out of the blue, initiate the activate code in the form without any calls of form's activate or anything like that, like the one I just got was when I tried to set focus to a button after some code and it did, but it ran the code under my activate of the form first. It did not do this before and I don't want it to because it clears my values out that I initalize in the activate. What causes this? Is it a bug? How do you prevent this occurance?
>
>Kev
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform