>Hello,
>
>we are using VFP 6.0.
>
>In our forms, we normally use the exit button in our tollbar to release the form. This works fine, but when the user uses the 'X' to close the form, we get an error message. In both cases the same code is used to release the form. It seems that another method than the .exit() is used when we click the 'X'.
>
>What can be the problem here?
The 'X' calls a form's Queryunload...or for the vfp main screen, your ON SHUTDOWN call.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.