Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing object reference to a new form
Message
From
26/01/2000 10:29:06
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00322790
Message ID:
00322812
Views:
22
>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
Map
View

Click here to load this message in the networking platform