Catch errors in webspeed page

K4sh

Member
Hi everyone,

I try to catch the errors after this code line :

RUN VALUE(LC(nom-pha)) (CAPS(P_pop), dat-deb, dat-fin, l-par,R-Library, cPrinter, iCopies, iBegPage, iEndPage, OutputFile, 1) NO-ERROR.
Id do it like this just after the previous line:

IF ERROR-STATUS:ERROR AND ERROR-STATUS:NUM-MESSAGES > 0 THEN DO:
...
...
END.
i know that some programs that i try to launch raise errors because
i can see them in the log file.

but the condition previously quoted is never true.

Why ? What did i miss ?
 

FrancoisL

Member
Your NO-ERROR applies to the RUN statement , but not the statements in your .p file . If it can't find the program to run then your ERROR-STATUS:ERROR will be true but not if a error comes up inside the called program.
 

K4sh

Member
Thanks for the reply.
The errors are raised inside the program called, you were right.

will see what i can do.

Merci pour tout ;)
 
Top