TiVCLComponent.OPCAddItem

TiVCLComponent See Also

Used to add an OPC Item to the component.

procedure
OPCAddItem() : Integer;

Description

Use the OPCAddItem procedure to add an OPC Item to the component. The return value is the index of the added OPC Item. Use the index with the SetOPCItemComputerName, SetOPCItemServerName, SetOPCItemItemName, OPCItemPropertyName, SetOPCItemAutoConnect, and SetOPCItemUpdateRate procedures to complete the configuration of the OPC Item or use the built-in property editor.

Example

Delphi

Index := iComponent.OPCAddItem();

C++ Builder

Index = iComponent->OPCAddItem();

Note: The Index values are 0 based.

Contents | Index | Previous | Next