Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems returning a value from form
Message
De
07/12/1999 10:16:07
 
 
À
07/12/1999 00:20:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00299555
Message ID:
00299740
Vues:
22
>>>>>I have a value in a form that I need to return back to the calling form. However, when the UNLOAD event is fired, my value is gone. I'm missing something, what do I need to do to preserve my value to it can be "returned"
>>>>>
>>>>>This is what I have in the UNLOAD EVENT
>>>>>
return thisform.description.value
>>>>
>>>>Is the form modal?
>>>
>>>The form is modal.
>>
>>Do you mean that the control no longer holds the correct value, or that the value is not returned to the calling procedure. The control has not been destroyed by Unload time, so that should not be a problem, but you can try storing itsvalue to a form property and returning the form property instead.
>
>Woops. That is a problem- controls are gone by Unload time. Since my framework handles modal messaging for me, it's been awhile since I wrote one of these. Sorry for the misinformation.

Thanks for the help! Mike pointed me in the right direction. By the time control passed to the UNLOAD EVENT, the control was gone. I created a property on the form to save the property in. Then before I "release" the form I stuff the control value that I want to pass back to the form property.
____________________________________________

Norm Peterson

It's a dog eat dog world out there,
and I'm wear'n milk bone underware!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform