dOPC Client Toolkit Help file
TdOPCEvent.CustomProps Property
C++
public: __property TdOPCEventCustomProps CustomProps;
C#
public TdOPCEventCustomProps CustomProps;
Visual Basic
Public Property CustomProps() As TdOPCEventCustomProps

CustomProps provides a collection of vendor specific attributes.

In addition to the standard attributes, vendors of OPC servers may provide additional attributes with event notifications.

procedure TForm1.dOPCEventServer1Event(Sender: TObject; Event: TdOPCEvent);
var
  i: Integer;
begin
  for i := 0 to Event.CustomProps.Count-1 do //for all custom properties show custom property name and value
    Memo1.Lines.Add(Event.CustomProps.Names[i]+ '->'+ Event.CustomProps.ValueAsString[i]);
end;
What do you think about this topic? Send feedback!
Copyright © 2001-2014 Kassl GmbH (http://www.kassl.de). All rights reserved.