TApxComPort.RemoveAllTriggers

TApxComPort

procedure RemoveAllTriggers;

Deactivates all triggers added to this port.

You would usually use this routine when your program changes modes and requires completely new triggers. Destroying or closing a port automatically removes all of its triggers.

Caution: Calling this method effectively disables the comport component since it removes all triggers, including the ones that Async Professional CLX requires internally for normal operation of the comport and associated components.

Normally, it's best to keep track of the triggers you add and remove them individually using RemoveTrigger when they are no longer needed.

See also: Open, RemoveTrigger