General information
Title:
Init firing too fast??
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only