>how can I exit from the form by coding?
>
>I use:
>
>thisform.unload
>thisform.released
>
>but the form still stays.
>
>regards,
>
>Jerry
ThisForm.Release()
Unload() is an event that is called automatically when Visual FoxPro already decided to close the form - that is, when the form is closing. It should not be used to close the form; rather, there you might put any cleanup commands that you want to execute when the form closes.
Another relevant event is QueryUnload(). It allows you to intercept an attempt to close a form, and keep it open, depending on some condition (for example, when there are unsaved changes, and when asked to save, the user selects "Cancel"; or the user wants to save, but there was an error saving).
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)