Description: Deletes one reason by zero-based list index from the visible record or from an optionally specified external object record.
Calling convention: CIP_DeleteReasonByIndex("ContainerName": String, ReasonIndex:Integer, ["TargetObjectName": String], [TargetDataID])
Parameters:
ContainerName: target reason-container entry name.
ReasonIndex: zero-based reason-list index.
TargetObjectName: optional external target object; when used, TargetDataID is also required.
TargetDataID: external target record ID.
Returns: Undefined on success. Invalid parameters, objects, entries, entry types, records, or indices raise an exception.
Availability: Default with an active matching DBForm, or with both external target arguments.
Example:
CIP_DeleteReasonByIndex("DowntimeReason", 0, "ProductionEvents", 1250);