Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bindevent
Message
From
17/09/2004 15:25:00
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Title:
Bindevent
Miscellaneous
Thread ID:
00943600
Message ID:
00943600
Views:
102
I don't know if Bindevent behavior has changed in the beta, but thought I had success in creating both a beforeInit() and afterInit() event when playing with it in VFP8. I can have a BeforeInit(), or an AfterInit(), but not both.
Anyway, while using VFP Beta, I'm unable to do so in a generic Report Form class. Currently I have a couple lines of code added to the bottom of each report's init(). It really belonged in the Report's baseclass, but it never made it.
A change I'm about to do makes it more important to move it into the report form's baseclass - this code needs to run after the form's init has completed. I could place the code in some other event, but the bindevent seems like a reasonable choice.

The following is the code I'm using:
BINDEVENT(Thisform, 'Init', THISFORM, 'BeforeInit', 0)
BINDEVENT(Thisform, 'Init', THISFORM, 'AfterInit', 1)

Any insights would be appreciated

Michael
Next
Reply
Map
View

Click here to load this message in the networking platform