Delete at a Decision in ExtDecBuffer

Description

Delete at a Decision in ExtDecBuffer deletes a decision from the decision buffer. If two or more decisions are in buffer with same offset of the decision, the first decision with that offset is deleted. If no decisions are found with the offset, an error is generated.

The difference between Delete at a Decision in ExtDecBuffer and Delete a Decision in ExtDecBuffer is that the former takes the offset; the latter takes the name.

Example

The following are the decisions.

Offset

Name

1

Decision Left

2

Decision Right

3

Decision Up

4

Decision Down

Delete a Decision in ExtDecBuffer would take Decision Right as a parameter.

Delete at a Decision in ExtDecBuffer would take the offset 2 as the parameter.

The two functions delete the same decision.

Parameters

This function block has the following parameters:

Parameter

Description

INPUT

 

Controller

Control location ID of the controller that provided the external decisions. This is used to identify decision buffer from which decision will be deleted.

Decision Offset

Offset of the decision to be deleted.

OUTPUT

 

Status

Status of the call, could be RCO_SUCCESS, RCO_WARNING or RCO_ERROR, If status is not RCO_SUCCESS then error information is returned in Error member of RcoDecisionBuffer object.

More information

Core function block list.