Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return values through parameter references
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01337702
Message ID:
01337705
Views:
15
Seems like I asked a similar question about 6 years ago. Googled groups and found it.

So, the answer to my question is NO; the parameter references are only accessible in the Init method.

However, I can pass a reference to an object, store that reference in a form property. Update any properties of the object, and they will be available back in the calling form.

This works.

Any other suggestions?

Thanks,
jim

>The command DO FORM frmMyForm WITH Param1, Param2, Param3 TO lResult
>
>passes Param1, Param2, Param3, and lResult by reference.
>
>Param1, Param2, and Param3 are passed to the form's Init method. lResult receives a result from the form's Unload method.
>
>I note that if I assign values to Param1, Param2, and/or Param3 in the Init method of the form, the values appear in the calling form, as you'd expect from a reference.
>
>Is it possible to save the references Param1, Param2, and Param3 to form properties, and then use these form properties to return values to the calling form from elsewhere (other than the Init method) in the called form?
>
>Thanks,
>Jim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform