Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BINDEVENT on INIT
Message
De
17/01/2007 10:47:42
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01186138
Message ID:
01186278
Vues:
28
Thanks,

That's why I used
UNBINDEVENTS(This)
to avoid firing the method more than one time.

>Keep in mind that Init fires only once and Activate every time form gets focus.
>
>>
>>Worked perfectly this way:
>>
>>In my class INIT event, I've put
>>
BINDEVENT(Thisform, "Activate", This, "AfterFormInit")
>>
>>In my class AFTERFORMINIT method, included for testing:
>>
MESSAGEBOX("After Init Fired!")
>>UNBINDEVENTS(This)
>>
>>Thanks very much Sergey and Olaf for your help.
>>
>>Cesar
>>
>>
>>>Have you tried the nFlags parameter? It allows you to set if the delegate runs before or after the event. So you could try to set it up to run before the forms activate. And in the activate perhaps Unbindevent...
>>>
>>>Bye, Olaf.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform