Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DO FORM vs. CREATEOBJECT
Message
De
19/05/1998 14:57:15
Ryan Hirschey
Federal Reserve Bank of New York
New York City, New York, États-Unis
 
 
À
19/05/1998 09:55:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00100139
Message ID:
00100372
Vues:
35
>This is what I did to get CREATEOBJECT to return a value from a modal form
>
> oprntprev = CREATEOBJECT('Print_Preview',tnDest)
> oprntprev.show(1)
> lnPrint = oprntprev.ReturnValr
>
>Instead of Releasing the modal form, I issue a Thisform.Hide when the user >exits. Control returns from the modal form, but I still have access to the >objects properties(ReturnVal). There is probably a better way to do this, but >this did work for me.

David Frankenbach has an example of returning values from a form at

http://www.geocities.com/ResearchTriangle/9834/qfrm001.htm

While the example uses DO FORM to call the form, you can also pass the object he uses in CREATEOBJECT as a parameter. He also shows how to return multiple values. His example makes it possible to release the form and still have access to the values.
Ryan Hirschey
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform