Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you get a return value from a FORM?
Message
De
10/08/1998 13:15:13
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
10/08/1998 13:05:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00125319
Message ID:
00125325
Vues:
14
>I would like to check for a return value from a FORM.
>How would I do this?
>thanks

Robert,
For a form to return a value it must be modal.
*Modal form init
lparameters paramshere

*Modal form unload
...
return ReturnValue

You call it :
do form mymodal with parms... to myreturnvalue

While this is the basic structure for a form returning a value, instead of this approach you might use these better ones :
1) Create a var(s) before calling another
This way you could change those var(s) from the called form.

2)Pass caller ref to called form
do form myform2retvalue with thisform

* myform2retvalue.init
lparameters oCaller
thisform.CustomSourceHolder = oCaller

* Any PEM
thisform.CustomSourceHolder.AnyPem() && A method call or prop assign-access

This way instead of returning a value you could directly use caller's PEM.

3)Do form myform name "myParent" linked && Myparent object ref is available

do form myform2retvalue && Same as 2 except you don't pass the ref
* Any PEM
myParent.AnyPem() && A method call or prop assign-access
*myParent references caller

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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform