Execute code when closing the window (Clicking 'X')

Raz A.
Haifa,

Mar 1, 2022
82 Posts

0  |  0  

Re: Execute code when closing the window (Clicking 'X')

I am using ATEASY 7 142G

I want to execute some code when the users click 'X' on the form
Where is the code that is exectuted by doing this?
What event is called?

Solution Available
DrATEasy (Ron Y.)
Mission Viejo, CA

Mar 2, 2022
368 Posts

1  |  0  

Re: Execute code when closing the window (Clicking 'X')

Use the OnQueryUnload() AForm event you can some code and if you need also prevent the form from being closed by setting the pbCancel
to True.

Ronnie



Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]