Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning a value from a procedure to a form
Message
From
04/12/1997 20:58:35
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
04/12/1997 20:28:34
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00063926
Message ID:
00063931
Views:
41
>Hi! I have created a form with a command button. When the command button is clicked, a procedure is called that activates a modal form.
>The modal form returns a value to the procedure when closed.
>
>e.g. In the command button I have: do with cVAR
> In the procedure I have: do form with cVAR to cANOTHERVAR
>
>Is it possible to return that value from the procedure to the form that called the procedure? Will RETURN TO MASTER command be sufficient?

From FormCaller you click a button -CallerButton-, FormModal is called with cVar, then cAnotherVar is returned back to FormCaller ? If this is the case :
In click event of CallerButton
do form with cVAR to cANOTHERVAR
In FormModal.unload "return cAnotherVar" and FormCaller has that value.

In the case there are many level caller forms you could set a property that will hold the return value in any level Form and pass this form reference to sublevel(s) then cAnotherVar could be stored to that property and intermediate level forms could be released immediately.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform