General information
Category:
Coding, syntax & commands
>I've got a form I'm working on where on the "parent" form I've got an object instanced called oNotation - it has the properties of cUserID and cMessage (among others). When the user clicks on an Add button I open a new form and pass the oNotation object reference to the new form. I'd like to bind some of the controls directly to the properties of oNotation but can't since the object reference isn't valid until it hits the Init() of the form. I can work around the problem by recreating the oNotation properties on the form, then binding to those instead (of course, copying the oNotation property values to the form and back again when they save). But I was wondering if there was any other ways of handling this - mostly out of curiosity I guess.
Hi Paul,
Just a stab here: How about using delayed instantiation (NOINIT) on the controls you want to bind, then INIT them in the INIT method of the form, after you've setup the oNotation reference?
-- Randy
Previous
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