Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BINDEVENT on INIT
Message
 
 
To
16/01/2007 22:04:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01186138
Message ID:
01186139
Views:
23
>What's the best way to use BINDEVENT associated to the INIT event ?
>
>I've created a class that needs to have some code run after all the objects of a form are initialized. So I added a
>
BINDEVENT(Thisform, "Init", This, "AfterFormInit")
>
>But this does not work as desired if the INIT method of the form is empty.
>If I write any code on it, such as
>
DODEFAULT()
>Everything works fine.
>
>Can someone provide any tip ?
>Thanks in antecipation

Hi Cesar,

The help for BINDEVENT() Function states, that "certain events such as When and Valid require code in the event for it to occur" but it doesn't provide complete list of such events. The ERROR() and DESTROY() events fall in this category. Seems that you found one more - INIT().
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform