Michel,
driessen wrote:1. I got an error "no exported method : gencode"
2. I got an error while linking : "Unresolved external symbol : hb_fun_writelogfile".
oErr:gencode is working here, it´s defined in the errorhandler of xharbour and it´s also working in errorsysw.prg from fwh.
The function WriteLogFile() was just a sample, not a really existing function. Just to show what you can do.
Please try this sample, it´s working fine here. (see also JC´s post)
- Code: Select all Expand view
//----------------------------------------------------------------------------//
FUNCTION CheckErr ()
LOCAL nLoc, oError
TRY
nLoc := "error"/2
CATCH oError
msgInfo( oError:gencode )
msgInfo( oError:SubSystem )
msgInfo( oError:SubCode )
msgInfo( oError:Operation )
msgInfo( oError:Description )
msgInfo( valToPrg( oError:Args ) )
quit
END
RETURN (nLoc)
There are some other values that can be checked, oError:severity, oError:tries, oError:oscode and so on.