DPL 9 Help

Terminate Function (DPL Code)

Terminate Function (DPL Code)

This command is used to end a DDE conversation. The syntax is

terminate(channel)

channel - A number identifying the channel.

The function returns the number 0.

This function may not be coded in the decision tree. In practice, the function will generally not be coded in a DPL model, but it may be used in the Command Program. All open channels are terminated automatically whenever DPL terminates or a new DPL program is analyzed.

If the channel argument of the terminate function is a constant expression, the function will be executed at compile time; otherwise, the function will be executed each time the containing expression is evaluated and the channel argument has assumed a new value.

Example:

terminate(channel_2)

Versions: DPL Professional, DPL Enterprise, DPL Portfolio

See Also