Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
QueryUnload and Release Thisform
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00305043
Message ID:
00305518
Vues:
27
John,

Interesting code. It could be made simpler by doint the following


PROCEDURE QueryUnload
lParameters lByPassRelease
Local lRetVal
lRetVal = .T.
*/ Check stuff here and store result to lretval
If NOT lRetVal
NODEFAULT
RETURN .F.
Endif
ENDPROC


PROCEDURE Release
lParameters lBypassQueryUnload
IF !This.QueryUnload()
NoDefault
RETURN .F.
Endif
ENDPROC


Let QueryUnload do all of the checking for OkToRelease and return a value telling the Release what the result was. BTW, this one also works with RELEASE oFormVar.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform