`
Par2: Trapping duplicate key error (ABC) 2005-05-14 -- Dennis Evans fileManger tests for duplicate errors in the insertServer method. If you
are using insert() then after the call
if (access:f.insert() <> level:benign)
if (globalErrors.getError() = DupKeyErr)
do what you want
else
other error
end
end
if you are using tryInsert() after the call
if (access:f.tryInsert() <> level:benign)
if (access:f.getError() = msg:duplicateKey)
so what you want
else
other error condition
end
end
Printed October 24, 2026, 2:55 pm This article has been viewed/printed 36292 times. |