>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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao