FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Error handling
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Error handling
Posted: Thu Jun 17, 2010 08:28 PM
I use following code for error handling.
How can I bring the error message to foreground?

Thanks in advance
Otto

Code (fw): Select all Collapse
local bLastHandler := ERRORBLOCK({    |objErr|  MyHandler(objErr, .T.)})
*----------------------------------------------------------

     BEGIN SEQUENCE

      USE ( CurDir() + "\artikel" )  VIA "DBFCDX" NEW


      RECOVER
       
        END
     ERRORBLOCK( bLastHandler )



function MyHandler(objError,llocalHandler)
   
   msgInfo( STR( objError:GenCode ) )

   if llocalHandler
      BREAK objError
   endif

RETURN NIL
//---------------------------------------------------------------------------//

Continue the discussion