Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting a return value from a VCX based form
Message
 
To
10/10/2000 09:59:17
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00427253
Message ID:
00427314
Views:
13
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform