Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning a value from a form
Message
From
13/03/2002 08:09:05
 
 
To
13/03/2002 07:53:02
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00631976
Message ID:
00631993
Views:
23
>>>>I am trying to return a value from a form.
>>>>
>>>>I set window to modal and used "do form vendors_pop to cNewID"
>>>>
>>>>This returns a value when the form is closed using the small "x" close button on the form but returns a logical .f. when I thisform.Release() from a method in vendors_pop.
>>>>
>>>>I tried :
>>>>
>>>>
do form vendors_pop name VendorPop linked
>>>>cNewID = VendorPop.cNewID
>>>>release VendrPop
>>>>
>>>>This one worked when a thisform.Hide() was fired from inside a vendors_pop method but not when the form was closed from the close button.
>>>>
>>>>I need a method that works for either.
>>>
>>>Don,
>>>Are you returning the value from 'unload' event ?
>>>Cetin
>>
>>Cetin - yes, it is from the Unload event. It transfer the value to a property (cNewID) in my Save method and "return thisform.cNewID" in Unload. When I step through the screen the correct value is in thisform.cNewID in unload but appears as a logical .f. for the return in the calling routine.
>>Don
>
>Don,
>Strange I can't reproduce it.
>Cetin

Thanks for the idea. I will try to reproduce it with from stratch forms rather than using my classes. If it wotks I will keeping adding my controls until it doesn't.

I just went through one week of running down an interaction which prevented comboboxes from firing because I had included a control from a third party which KEYBOARD {END}'s. I hope this is not another of those.
Best Regards
Don Simpson
Previous
Reply
Map
View

Click here to load this message in the networking platform