Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning a value from a procedure to a form
Message
De
04/12/1997 20:58:35
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
04/12/1997 20:28:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00063926
Message ID:
00063931
Vues:
46
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform