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:
00427270
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

Write the wrapper. You can do it in a couple of ways:

1. Wrapper that that sets up a private variable and the Unload event of the form class sets the value of the private variable.

2. Wrapper that reads a property of the form. The return button hides the form instead of releasing it. When the form becomes invisible, execution will continue in your wrapper program.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform