Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DO FORM MyForm TO uResult--Undefined Variable
Message
De
14/09/1999 08:43:45
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00264264
Message ID:
00264389
Vues:
21
PMFJI, but what you get is exactly what you're supposed to get. Returning .F. in the Init method prevents the form from beeing instanciated, so it's perfectly normal that the Unload event isn't fired - there is nothing to unload.

Peharps you can DO FORM MyForm NAME oForm, and then check TYPE("oForm"); if it's Undefined, the form's init returned .F. and your form was not instanced, if it's an Object, then your form exists.

>I tried initilizing the variable first, but it appears that the Unload event does not return the reference back to uResult. I created the most simple form as an example:
>
>{Init}
>RETURN .F.
>
>{Unload}
>RETURN "1"
>
>uResult = "0"
>DO FORM MyForm TO uResult
>? uResult && displays "0"
>
>I believe it's a "problem" with VFP. Is there anything else I can try to get the variable passed back?
Sylvain Demers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform