Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Event firing BEFORE form.load
Message
From
04/03/2009 06:48:54
 
 
To
04/03/2009 06:38:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
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:
01385426
Views:
71
>> I've seen this happen. Maybe someone knows a better solution but here's how I got around

>> (1) Add a property to you form class 'Loading' and set it to .T.

>> (2) at the end of your form's class Load() or at the start of the Init() set it to .f.

>> (3) Test it

>> Pageframe.PageCount_Assign

>> if( m.thisform.Loading )
>> && do nothing
>> endif
>> (4) you may need to add - at the end of the PageFrame's init()
>> this.PageCount = m.this.PageCount


Thanks, but the problem is that this is not my pageframe, it is in Emerson Reed's excellent ThemedControls.

I am going to raise it on VFPx and see if there is anywhere he can add a hook in that I can put code in, but wonderred if there was any other work around.

Gary.
Previous
Reply
Map
View

Click here to load this message in the networking platform