...DLL (like a -1).
Thanks for your help.
ON ERROR do errorproc with ERROR(), PROGRAM(), LINENO(), MESSAGE(), MESSAGE(1)
do some stuff
SELECT * from tablethatdoesnotexist ** cause error
RETURN countofrecords
PROCEDURE ERRORPROC
LPARAMETERS nError, cMethod, nLine, cMessage, cMessage1...