Top
PowerCOBOL V11.0 Reference
FUJITSU Software

6.40 RecordChangeComplete Event

Description:

Generated after one or more records change.

Used in controls:

ADODataSourcel

Used in Objects:

None.

Parameters:

1. [VT_I4 - Index S9(9) COMP-5]

2. VT_I4 - adReason S9(9) COMP-5

3. VT_DISPATCH - pError OBJECT REFERENCE POW-COBJECT

4. VT_I4 - adStatus S9(9) COMP-5

5. VT_I4 - cRecords S9(9) COMP-5

6. VT_DISPATCH - pRecordset OBJECT REFERENCE POW-COBJECT

Description of parameters:

  1. Index: When the control is part of an array, Index contains the control's index in the array.

  2. adReason: Indicates the reason for this event as follows:
    POW-ADODB-ADRSNADDNEW: An operation added a new record.
    POW-ADODB-ADRSNDELETE: An operation deleted a record.
    POW-ADODB-ADRSNUPDATE: An operation updated an existing record.
    POW-ADODB-ADRSNUNDOUPDATE: An operation reversed the update of a record.
    POW-ADODB-ADRSNUNDOADDNEW: An operation reversed the addition of a new record.
    POW-ADODB-ADRSNUNDODELETE: An operation reversed the deletion of a record.
    POW-ADODB-ADRSNFIRSTCHANGE: An operation made the first change to a record.

  3. pError: Indicates an ADO error object. It describes the error that occurred if the value of adStatus parameter is
    POW-ADODB-ADSTATUSERRORSOCCURRED;
    otherwise it is not set.

  4. adStatus: Indicates or requests the current status as follows:
    POW-ADODB-ADSTATUSERRORSOCCURRED: Indicates that the operation that caused the event failed due to an error or errors.
    POW-ADODB-ADSTATUSOK: Indicates that the operation that caused the event was successful.
    POW-ADODB-ADSTATUSUNWANTEDEVENT: Requests that further events of the type that caused this event to be generated should not be generated.

  5. cRecords: Indicates the number of records affected.

  6. pRecordset: Indicates a pointer to the recordset object, for which this event is generated.

Details:

Consult the ADO documentation for details.