>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