Hi,
Could you explain what are you trying to do? If You want to execute some process or validation while user close the form, you may place you code in form.queryunload event. RETURN .F. for cancelling unload.
Hope it helps
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...