Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Aborting form.unload
Message
 
 
À
07/08/2009 11:43:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01416755
Message ID:
01416767
Vues:
80
This message has been marked as a message which has helped to the initial question of the thread.
>>How can I prevent form release or unload ?
>>
>>Is a button the only way ?
>>
>>I put the code below release or unload but could not achieve what I wanted
>>
>>Doesn't "return" abort form unload event ?
>>
>>IF thisform.tested = 0
>> = MESSAGEBOX("Not tested yet")
>>RETURN
>> endif
>
>Put your conditional check in the form's queryunload() :

Moises,

>
>IF thisform.ReleaseType = 0  and [ my condition ] && to allow release by x in the right top corner
>    nodefault
>    return .f.
>ENDIF
>
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform