Page 1 of 1

App a runtime error return to last function, not quit app?

Posted: Tue Jan 16, 2007 2:02 am
by ShumingWang
Hi,
When we meet app runtime errors,could we return to last called from function intead of quit app?
for example:
Function a1()
define dialog odlg resource "odlg"
redefine button id 101 of odlg action a2()
activate dialog odlg
return

function a2()
local n1:=1/0
// local n1:="aaa"+2
return

Click id 101 button only shows a runtime error ,then return to a1 odlg.
Our customers feel this will be better than quit the app.

Best Regard!
Shuming Wang

Posted: Tue Jan 16, 2007 3:49 am
by Antonio Linares
Shuming,

You can modify FWH\source\function\errsysw.prg

Posted: Tue Jan 16, 2007 7:14 am
by ShumingWang
Antonio,
Thank you!
Shuming Wang