Pedro,
For example, you might have a control where you to save its value to a table when the form closes, so it can be used as a default value to be loaded in the init() of that same control the next time. You could do this in the destroy() of the control.
Some things you should do in the form's unload(), rather than destroy(). Closing tables is an example (if the form has a private datasession, this is taken care of for you). Also, if it is a modal form returning a value, that is done in unload().
>Thanks Steve
>
>I understand .
>But now i want learn more .
>
>I never used destroy event of one object , i only use destroy of form .
>
>Can you , or other person , give me one example , where we may use destroy of one object that is in one form .
>
Steve Gibson