Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Pm_LastErr - property of object AdoRecordset

Description:
The numeric error code of the result of last executed method (property) over the AdoRecordset object.
Syntax:
Pm_LastErr As Long
Calling:
n = oRs.Pm_LastErr
Note:
Property access for read only. In order to test the result of last executed method (property) over any implementation ADO object (e.g. AdoRecordset, AdoField, AdoRecord) encapsulated by security layer (Wrapper object object). In order to test the result of last executed method (property) over the PmAdo object similar properties PmAdo.LastErr and PmAdo.LastTextErr can be used.
Example:
Testing whether the method MoveFirst was completed without errors and whether the position of current record was really moved to first position. If the AdoRecordset did not contain any records or the record move failed, then the returned error can betested by AdoRecordset.Pm_LastErr method.
If oRs.Pm_LastErr = 0 Then
  Do Until oRs.EOF
    Pm.Debug oRs.Fields(0)
    oRs.MoveNext
  Loop
Else
End If
PROMOTIC 8.3.21 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice