Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form does not close as it should
Message
 
À
14/06/1999 12:20:23
Paul Frost
Instem Computer Systems Ltd
Stone, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00229414
Message ID:
00229810
Vues:
18
>Still, I prefer to see programs with one way of doing things like exiting, rather than multiple ways like an exit button or the "X". The proprerties are there, so why not use them to make life easy.

It occurred to me a little later that instead of being critical, I can offer a very easy solution to your & Koos' form exit problems. To re-direct the 'X' (and other titlebar) exiting, all you need to do is put this code in the form's Queryunload:

Nodefault && stops automatic form release
This.cmdexit.click

This will allow you to enable your titlebar closing, and give you complete control over the exit code. Unless it's the main vfp screen, of course, where you'll need a SHUTDOWN call...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform