Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Init firing too fast??
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00478448
Message ID:
00478456
Vues:
24
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform