Support Forums > Other Software and Code

force quit firefly program

(1/1)

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.

Shawn Anderson:
perfect, thanks

Navigation

[0] Message Index

Go to full version