Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting a return value from a VCX based form
Message
 
À
10/10/2000 09:59:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00427253
Message ID:
00427314
Vues:
12
>Is there any way of getting a return value from a VCX form.
>
>I can write a wrapper for the form and return a value from that but I wondered if there was a better way.
>
>Is it possible to create an instance of a VCX based form then run it with DO FORM myform TO myreturnvalue
>
>Many Thanks

Prior to calling the form.

Create a small object that contains a property. Pass that object to the form (You will receive the object in the init method.) Store the object to a proerty of the form I.E. oRetVal

Upon exit of the form do something like THISFORM.oRetVal.lRetVal = .F.

Interogate the object upon release of the form.
What ben makes tracks for what wil be. Words in the air pirnt foot steps on the groun for us to put our feet in to.

Riddley Walker
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform