Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Init firing too fast??
Message
From
22/02/2001 11:08:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Init firing too fast??
Miscellaneous
Thread ID:
00478448
Message ID:
00478448
Views:
49
I have a form which loads another form when the user presses an edit button. The newly called form, in it's INIT method, uses the AddObject method to add a container to the form. Occassionaly, the line Thisform.Addobject("bla","bla") errors with "Syntax error!". Is this because the form hasn't quite yet instatiated enough to give reference for the addobject? A timing issue?
Again, it only happens randomly. When the debugger comes up, I hit resume immediately and it doesn't have a problem with the addobject then, and everything loads up ok.
Should I move the Addobject to the activate method on a firstpass basis?

Thanks, thanks, thanks...

Gary Beasley
Next
Reply
Map
View

Click here to load this message in the networking platform