Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Init firing too fast??
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00478448
Message ID:
00478456
Views:
23
Tried issuing DODEFAULT first?

>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?



Just an idea,
- Erik Niese-Petersen

Crazy Dane in USA.
Previous
Reply
Map
View

Click here to load this message in the networking platform