Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Event firing BEFORE form.load
Message
From
04/03/2009 05:39:10
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Event firing BEFORE form.load
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01385412
Message ID:
01385412
Views:
168
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
Map
View

Click here to load this message in the networking platform