>I am running FPD 2.6. From within my error routine I would like
>to invoke a DIFFERENT error routine to trap errors that the first
>routine generates. It doesn't seem to work.
>Any suggestions?
Without getting too much into the specifics of language:
In initialization of system:
global errorstatus
errorstatus=0
on error do errorhandler1
procedure errorhandler1
errorstatus=errorstatus+1
if errorstatus>0
do errorhandler2 with appropriate context data
else
main part of errorhandler1
errorstatus=errorstatus-1
return as appropriate
procedure errorhandler2
handle the errorhandler1 error
return
Take care that errorstatus is incremented and decremented
correctly.
Sincerely,
Gene Wirchenko
C Pronunciation Guide:
y=x++; "wye equals ex plus plus semicolon"
x=x++; "ex equals ex doublecross semicolon"