FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour error dialog
Posts: 434
Joined: Wed Jun 06, 2007 02:58 PM
error dialog
Posted: Mon Oct 28, 2019 03:09 PM

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?

FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023

FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)

Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: error dialog
Posted: Mon Oct 28, 2019 06:38 PM
Code (fw): Select all Collapse
#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


EMG

Continue the discussion