dOPC Client Toolkit
Close
dOPCDA.TdOPCPropertyBrowser.GetProperty

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 © 2019. All rights reserved.