Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BINDEVENT on INIT
Message
 
 
To
17/01/2007 10:47:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01186138
Message ID:
01186304
Views:
23
Missed that. Sorry for waisting your time.

>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)
>>>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform