Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to return a value from a form?
Message
From
27/11/2003 12:17:03
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
27/11/2003 11:40:32
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00854035
Message ID:
00854055
Views:
28
>Thanks John, I'll give it a try.
>
>I am curious about the following issue with forms. If I create a form (frmTest) based on my form class and then put the following code:
>
>DO FORM frmTest WITH "string1", "string2" TO lcChanged
>
>I can see how the form will return a value to the variable lcChanged in it's Unload() event. How do I do this if I don't create a form in the VFP forms designer but instead put code to CREATEOBJECT()? Where is the return value going from the form class's Unload() event?
>
>Mike
>
>>Hi,
>>The final check : make sure you issue THISFORM.HIDE() instead of THISFORM.RELEASE() in your modal form

Mike,
As John said use thisform.hide. With forms either created with createobject or do form ... name oFrm you can get back any property of that form relieving you from using unload. Doing that way you also benefit getting back as many values as you want rather than just a return value.
Just my 0.02 cents.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform