General information
Category:
Coding, syntax & commands
Title:
Event firing BEFORE form.load
Environment versions
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.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only