Andy
2008-03-03 17:19:02 UTC
Hello,
I used the function GETLASTERRORTEXT in version 5.0.
Now I should use the same function in a db ver 4.00 sp 3 but I don't have
this function.
I need it to log if a codeunit goes wrong, returns false:
Following is the code running on 5.0
IF NOT CODEUNIT.RUN(CODEUNIT::"Item Jnl.-Post Batch",gRecItemJournalLine)
THEN BEGIN
retValue := FALSE;
ErrorLogMgt.SetInterruptingSeverity := 0;
ErrorLogMgt.LogError(TaskCode,
TaskID,
'BATCH_ERROR',
COPYSTR(GETLASTERRORTEXT,1,250)
,(GETLASTERRORTEXT,251,500)
,0);
CLEARLASTERROR;
END
How can I have same functionality in 4.0 sp3?
Thank you
I used the function GETLASTERRORTEXT in version 5.0.
Now I should use the same function in a db ver 4.00 sp 3 but I don't have
this function.
I need it to log if a codeunit goes wrong, returns false:
Following is the code running on 5.0
IF NOT CODEUNIT.RUN(CODEUNIT::"Item Jnl.-Post Batch",gRecItemJournalLine)
THEN BEGIN
retValue := FALSE;
ErrorLogMgt.SetInterruptingSeverity := 0;
ErrorLogMgt.LogError(TaskCode,
TaskID,
'BATCH_ERROR',
COPYSTR(GETLASTERRORTEXT,1,250)
,(GETLASTERRORTEXT,251,500)
,0);
CLEARLASTERROR;
END
How can I have same functionality in 4.0 sp3?
Thank you