dOPC Client Toolkit Help file
TdOPCPropertyBrowser.GetProperty Method
C++
public: __fastcall TdOPCItemProperty GetProperty(
    AnsiString ItemId, 
    int PropId
);
C#
public TdOPCItemProperty GetProperty(
    String ItemId, 
    int PropId
);
Visual Basic
Public Function GetProperty(
    ItemId As String, 
    PropId As Integer
) As TdOPCItemProperty

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

P := PB.GetProperty('Random.String', OPC_PROP_DESC);
if P <> nil then
  Showmessage(P.Value)
else
  Showmessage('property not found');
What do you think about this topic? Send feedback!
Copyright © 2001-2014 Kassl GmbH (http://www.kassl.de). All rights reserved.