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?
error dialog
- damianodec
- Posts: 372
- Joined: Wed Jun 06, 2007 2:58 pm
- Location: Italia
- Contact:
error dialog
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: error dialog
Code: Select all
#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