GetErrorIndex

Description

Gets the index of the first error encountered when executing the DataWindow/DataStore/DataWindowChild object.

Applies to

BatchDataObjects object

Syntax

objectname.geterrorindex ( ) 

Argument

Description

objectname

A reference to the BatchDataObjects object.


Return value

Integer.

Returns the index of the first error when executing DataWindow/DataStore/DataWindowChild or returns 0 if no error occurs.

Examples

The following example gets the index 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()
end if

See also

GetCount

GetSQLDBCode

GetSQLErrText