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

EventlistSort contains the properties by which you can sort your events.

You can specify these properties at design time or runtime. You can sort the events according to all property names of TdOPCEvent, e.g. Time, Active, Msg, Severity, ... 

Designtime: 

Click on the property EventlistSort in the object inspector and in the dialog window select the properties by which the events are to be sorted. Click on an item in the "Selected Properties" list box if you want to have the events displayed in descending order. This is represented by a "D" next to selected item. 

Runtime:  

procedure TForm1.SortbyButtonClick(Sender: TObject);
var
  Sortby : TStringlist;
begin
  SortBy := TStringlist.Create;
  SortBy.Add('Active (D)'); //or better use dOPCDESC constant for descending sort
  SortBy.Add('Time ' + dOPCDESC);
  SortBy.Add('Severity'); //normal sort, not descending
  dOPCEventServer1.EventListSort := SortBy;
  SortBy.Free;
end;
What do you think about this topic? Send feedback!
Copyright © 2001-2014 Kassl GmbH (http://www.kassl.de). All rights reserved.