i want to continue with a process after an error in navision, how i can to control the error and continue?. is for a test form in purchase order where could see the errrors in all purchase process.
Hi,
the only way I know is to build a codeunit which will start your transactions/functions.
REPEAT
CLEARLASTERROR;
IF NOT MyCreatedCodeunitWhichDoesSomeCodeWhereErrorsCanOccur.RUN THEN BEGIN
ErrorTxt := COPYSTR(GETLASTERRORTEXT,1,MAXSTRLEN(ErrorTxt));
<Save Error in some list to have a look after process is finished>
END;
UNTIL <Something>
With this method your code would not break on error.
Hi,
the only way I know is to build a codeunit which will start your transactions/functions.
REPEAT
CLEARLASTERROR;
IF NOT MyCreatedCodeunitWhichDoesSomeCodeWhereErrorsCanOccur.RUN THEN BEGIN
ErrorTxt := COPYSTR(GETLASTERRORTEXT,1,MAXSTRLEN(ErrorTxt));
<Save Error in some list to have a look after process is finished>
END;
UNTIL <Something>
With this method your code would not break on error.
Answers
the only way I know is to build a codeunit which will start your transactions/functions.
With this method your code would not break on error.
/mik
With kind regards
mik