Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning a value from a form
Message
De
13/03/2002 07:41:08
 
 
À
13/03/2002 07:36:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00631976
Message ID:
00631984
Vues:
22
>>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.
>
>Try this in the UNLOAD event of the form
>
>
>Return cNewId
>
I used :
Return thisform.cNewId
thisform.cNewId was assigned in my Save method before the thisform.Release()
Best Regards
Don Simpson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform