6.8.48 DMcob_ResetValue

With this function you can reset attributes of DM objects at the value of the respective model or default. For the permitted attributes of the respective object type, please refer to the charts in chapter “Attributes and Definitions”.

call  "DMcob_ResetValue" using
             DM-StdArgs
             DM-Value.

Parameters

-> DM-object of DM-Value

This parameter describes the object whose attribute you want to reset. You have received this identifier as return value from the DMcob_PathToID function.

-> DM-Attribute of DM-Value

This parameter describes the object attribute you want to reset. All permitted attributes are defined in the IDMcobws.cob file.

->DM-Index of DM-Value

This parameter is analyzed only in vector attributes of objects and describes the index of the searched sub-object (e.g. text in listbox).

-> DM-Options of DM-StdArgs

This parameter controls whether the DM is to trigger rule processing after an attribute was set successfully.

  • DMF-Inhibit

    If no events are to be sent, this parameter has to be set with DMF-Inhibit.

  • DMF-ShipEvent

    If there are events to be sent, the parameter has to be DMF-ShipEvent.

Return Value

DM-status of DM-StdArgs

DM-error

The attribute could not be reset.

DM-success

The attribute was reset successfully.