Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>I have a large app, many forms/formsets, though only some open at any one time. I have a cleanup prg which runs on shutdown. All is fine except when a there are some unsaved edits in the buffer, and the user closes via the main vfp window (X, icon, menu).
>
>Then I get errors from the buffering, because the shutdown/cleanup runs before the queryunload. What's a good way to deal with this?
Bruce,
In the .Destroy() event of all of my forms, I load up and array of all aliases that were or could have been buffered during form operation. They are run through a loop (in a transaction class) that performs a tablerevert() on each alias flushing all buffers before the form is killed. That would solve your dilemma because then all you need to do is a loop to release the forms and the buffered aliases are automatically taken care of inside the form.
Steve
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement