Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Release form and return a value
Message
 
To
07/11/2000 23:49:46
F. Bennett Swenson
Sundance Aerial Photography
Hurst, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00438686
Message ID:
00439125
Views:
14
Calling program
do form MyForm with retDoWhat
MyForm.Init
parameter retDoWhat
MyForm.DoWhat.Click
retDoWhat=a return value
MyForm.Release (or maybe QueryUnload)
return retDoWhat
Calling program
..after do form with ReturnValue
CallingFiunction(retDoWhat)
There's always a public variable or global object property that could be used/

>I'm confused. Once the user makes a choice of one of the three buttons in the command group "dowhat",
> I want the form to go away and I want the value of "dowhat" to be available to the calling program.
>
>The last line of code in the "dowhat" CLICK EVENT is thisform.release
>just prior to this line of code, I have done what you said. and the property shows up in the Debugger
>But when the form is released all it's properies are destroyed also and there is nothing left for
>the UNLOAD EVENT to work with.
>
>Is there another way to release the form?
>My understanding is that the UNLOAD EVENT is trigggered by the release of the form, so I don't understand
>how the UNLOAD EVENT can be of any use if the form and all its informaiton is already destroyed.
>
>The only way I have been able to get this thing to work is to establish a PRIVATE MEMVAR in the calling program,
>set it to the value of "dowhat" at the "dowhat" CLICK EVENT.
>
>Thanks for your help.
>
>F. Bennett Swenson
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform