Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bindevent
Message
De
17/09/2004 15:25:00
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Titre:
Bindevent
Divers
Thread ID:
00943600
Message ID:
00943600
Vues:
101
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform