`
Par2: Getting ErrorCode from ABC Methods 2004-06-07 -- Dennis Evans > FileManager.throwMessage, before the parent call
>
> if (ErrorNumber = Msg:DuplicateKey)
> deal with duplicate
> end
that will only get the error for insert, for both tryInsert and Insert
after the call
if (access:fname.tryInsert() <> level:benign)
if (access:fName.getError() = Msg:DuplicateKey)
handle duplicate
else
other errors
end
end
Printed October 24, 2026, 3:03 pm This article has been viewed/printed 36251 times. |