class DbException example
The following statements attempt to apply cached updates. If there is an error and the code is compiled with the debug flag on, the errors are displayed in the result pane of the Command window.
try
form.database1.applyUpdates()
catch (DbException e)
msgbox("Cached updates failed to post", "Fatal error", 16)
#ifdef DEBUG
local n
for n = 1 to e.errors.size
with e.errors[ n ]
? nativeCode, message
endwith
endfor
#endif
endtry