You can modify to this:
function Depart
clear events
* deactivate window all
pop key all
on shutdown
if _VFP.StartMode = 0 && Development Mode
Clear All && This Relases all Memory variables and Windows
set sysmenu to default
set library to
modify window screen
=sys(3056) && Reread Registry and config.vfp settings
Else
Clear All && This Relases all Memory variables and Windows
Close Databases All
Close All
endif
return .F.
Deactivate Window only hides all windows except modal windows (like Messageboxes)
Be fast like the Fox
Be free like the Penguin
Se Rápido como el Zorro
Se libre como el Pingüino