Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Event firing BEFORE form.load
Versions des environnements
Network:
Windows 2003 Server
I have a problem with events firing before my forms load event.
If you create a pageframe class and add an _assign method to the .pagecount, add that pageframe to a form class with say 2 pages.
If you now create a form based upon that form class and change the .pagecount to 3 or more then the pagecount_assign method of the pageframe class will fire before the forms load event!
Why is this a problem? well the form in question has a private datasession, so when the pagecount_assign runs all the enviroment settings (SET TALK etc) are all set wrong.
I have a temporary work around by setting the Environment settings in the BeforeOpenTables, but that means I have to code it in each form and can't put it in my class.
Has anyone come across this? is there anyway around it?
Gary.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement