Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return values through parameter references
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Return values through parameter references
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01337702
Message ID:
01337702
Views:
62
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
Next
Reply
Map
View

Click here to load this message in the networking platform