Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unloading form via toolbar
Message
De
03/09/2003 19:30:52
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
 
 
À
02/09/2003 19:23:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00825431
Message ID:
00825866
Vues:
18
Pamela, thanks for the reply.

>To what is lnFormValue scoped? When you use the toolbar to close the >form is the next line of code executed the same as when you use the >form button?
The code is something like..
LOCAL lnFormValue
DO FORM myForm TO lnFormValue
IF lnFormValue=lnAnotherValue... etc.


Problem update...

I have investigated the problem further and have now placed the same code in the click methods of both the toolbar close-button and a 'Close' button on the modal form itself.

IF _screen.activeform.queryunload()
_screen.activeform.release
ENDIF

When the form-button is pressed, the form closes and a value is returned to lnFormValue. When the toolbar button is pressed, the form closes, but no value is returned (if lnFormValue is not initialised, it doesn't even exist when control passes to the following line!) even though RETURN lnReturnValue is definitely executed in form.unload().

Any further ideas would be appreciated.

Regards,
Alan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform