dOPC Client Toolkit

GetProperty returns a TdOPCItemProperty object for the item with the passed ItemId and the passed PropId.

function GetProperty(ItemId: string; PropId: integer): TdOPCItemProperty;
__fastcall TdOPCItemProperty GetProperty(AnsiString ItemId, int PropId);
P := PB.GetProperty('Random.String', OPC_PROP_DESC); if P <> nil then Showmessage(P.Value) else Showmessage('property not found');

TdOPCItem.ItemId, TdOPCItemProperty.Id

Kassl GmbH Copyright © 2024. All rights reserved.