Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return value from a form based class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00634255
Message ID:
00634278
Vues:
23
Hiya Pedro...

Create a property of myformbaseclase:

myformbaseclass.myreturndata (scope as N, C, or whatever return data you need)

Create UDF in myformbaseclass:
*-- myformbaseclass.returnvalue()
    RETURN myformbaseclasee.myreturndata
Then, call the form. When you are done working on your form, instead of closing the form as normal,
try:

RETURN TO MASTER
PROCEDURE activateform

 createobject(myformbaseclass,parameters)
 myformbasedclass.show

 ***-- After you issue on the form, "RETURN TO MASTER", you will be here

 myformbasedclass.hide

 luReturnValue =myformbaseclass.returnvalue()
 myformbasedclass.release

 
HTH,

Ric


>Hi to all:
>When I want to return a value from a form, I use do form myform to myvar.
>How can I do the same if I use createobject(myformbasedclass,parameters),myformbasedclass.show and myformbasedclass.release commands?
>Thanks
>Pedro
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform