Error handling

Error handling

Postby Otto » Thu Jun 17, 2010 8:28 pm

I use following code for error handling.
How can I bring the error message to foreground?

Thanks in advance
Otto

Code: Select all  Expand view  RUN

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
//---------------------------------------------------------------------------//
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 2 guests