Description
Gets the SQLDBCode of the first error encountered when executing the retrieve or update statement with the DataWindow/DataStore/DataWindowChild object in BatchDataObjects.
Applies to
Syntax
objectname.GetSQLDBCode ( )
Return value
Integer.
Returns the value of SQLDBCode or returns 0 if no error occurs.
Examples
The following example gets the SQLDBCode of the DataWindow where error occurs.
li_return = lnv_RestClient.RetrieveOrUpdateWithModels( lbdo_test, ls_url) if li_return = 1 then MessageBox("Success", "Return = " + String(li_return)) else li_index = lbdo_test.GetErrorIndex() if li_index > 0 then long ll_SQLDBCode ll_SQLDBCode = lbdo_test.GetSQLDBCode()) else //handle other error end if end if
See also