Hi,
I have an .exe that runs in schedulate time.
I'd like that this program does not show a dialog when error occour but I'd like that it writes an myError.log and stop run.
any help?
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL nVar, oErr
ERRORBLOCK( { | oErr | Break( oErr ) } )
BEGIN SEQUENCE
nVar *= 2
? nVar
RECOVER USING oErr
? "Do what you want"
? oErr:Description
END SEQUENCE
RETURN NIL
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 33 guests