on form Unload Event

I am trying to capture the unload event of a form. Currently, It does not exist in SC9 (as far as I can see).
When my form loads (onload event), it creates a global variable that I want to modify after the form is closed. Is there a way to do this?
Thanks

can you try onAfterxxx event

Very good idea!!
Thanks.