Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On Shutdown again - one more tiny problem...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00082490
Message ID:
00082531
Vues:
35
>Actually, that's a pretty good idea. Not quite as generic as I was looking for, but it does work just fine. In queryunload, if the save button is enabled, I just setfocus to any object that has that method (and that won't cause any trouble), and the field gets pushed into the buffer as desired. Thanks for the idea, and maybe I can make it more generic if I think about it...

Well, that didn't take long (duh!). To make the queryunload code reusable, you just check for the existence of the cmdsave button. If it doesn't exist, there's nothing to do. Then if it's not enabled, there's nothing to do. But if it exists and is enabled, then it's also available for the setfocus, so you can use that to trigger the buffer update. Looking good...
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