dOPC Client Toolkit Help file
TdOPCEventFilter.Categories Property
C++
__published: __property TStrings Categories;
C#
TStrings Categories;
Visual Basic
Property Categories() As TStrings

Categories contains a category filter, which means that only events of the specified categories will be reported.

If this string list is empty, the events of all categories will be reported. If you modify this collection while the control is connected to an OPC server, you need to call the Refresh method to apply the changes.

var
 Filter : TdOPCEventFilter;
begin
  Filter := dOPCEventServer1.Filter[0]; //get first filter
  Filter.Categories.Clear
  Filter.Categories.Add('Category 1')
  Filter.Categories.Add('Category 2')
  Filter.Refresh;
end;
What do you think about this topic? Send feedback!
Copyright © 2001-2014 Kassl GmbH (http://www.kassl.de). All rights reserved.