dOPC Client Toolkit Help file
TdOPCItemProperties Class
dOPC.TdOPCItemProperties
C++
public: class TdOPCItemProperties : public TList;
C#
public class TdOPCItemProperties : TList;
Visual Basic
Public Class TdOPCItemProperties
Inherits TList

dOPC

class to store a list of all properties of an OPC Item 

TdOpcItemProperties can be used to browse the available properties (also referred to as attributes or parameters) associated with an item.

Besides the current values of these properties can be read.

//get all Properties from Item 'A100.SP'

Props := TdOpcItemProperties.Create(OPCServer,'A100.SP');
for i := 0 to Props.Count-1 do
  with Props[i] do
    ShowMessage(Format('property %d %s Datatype: %d Value: %s',[Id,Description,Datatype,ValToAStr(Value)]));
Props.Free;
TdOPCItemProperties Methods 
Description 
ById 
ById returns a TdOPCItemProperty object for the passed Id. 
TdOPCItemProperties Properties 
Description 
ItemId contains the unique identifier for the item. 
Items contains the TdOPCItemProperty objects which can be accessed via the Index parameter. 
OPCServer contains the TdOPCServer you want to use with the TdOPCItemProperties class. 
Tag 
Tag has no predefined meaning. 
for internal use
WantUpdate provides True if the properties of the item claim an update of their values, otherwise False
What do you think about this topic? Send feedback!
Copyright © 2001-2014 Kassl GmbH (http://www.kassl.de). All rights reserved.