>Using CodeMine 7, I need to check a couple items before I allow a form to be closed.
>
>The Click() of the Close (cmdCloseCustom) works fine for this purpose, but I have a feeling its not the best place.
>
>I also need to check these items if the user closes the Form by pressing Windoows Close [X].
>
>In CodeMine 7 is there a better method I could use instead of the Click() of the Close command button to put this code so that it is checked regardless of how the form is closed?
>
>Thanks,
>Mel Cummings
In general (NOT in CodeMine, which I don't know) you can use the QueryUnload() Event for this purpose. This will be called when you try to close with the "x" or with Ctrl-F4. It is not, however, called when you RELEASE the form in Code.
Check whether CodeMine has any code in this method.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)