Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Runs activate again without request,is it a bug???????
Message
De
26/02/2003 17:40:02
 
 
À
26/02/2003 17:33:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00758485
Message ID:
00758489
Vues:
22
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform