• Welcome to PlanetSquires Forums.
 

force quit firefly program

Started by Shawn Anderson, October 11, 2019, 04:31:47 PM

Previous topic - Next topic

Shawn Anderson

How can I programmatically quit a FF program?

SeaVipe

Hi Shawn,
FF_CloseForm( HWND_MyForm, 0 ) is the built-in FF routine that when called with the projects startup form as its first parameter will shut down the app. I use MyForm_WM_DESTROY function to do some tidying up before the app is shut down. The second parameter is the FF_CloseForm return value.
A less elegant way is to call END which doesn't leave you much except END's return value after the app immediately shuts down.
DestroyWindow HWND_MyForm is not recommended.
I hope this helps.
Clive Richey

Shawn Anderson