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

Areas contains an area filter, which means that only events of the specified areas will be reported.

If this string list is empty, the events of all areas 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.Areas.Clear
  Filter.Areas.Add('Area 1')
  Filter.Areas.Add('Area 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.