Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link 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
Today is December 3, 2024, 11:36 am This article has been viewed 35334 times.
|
|