TStringList.Sorted

From Soldat Community Wiki
Revision as of 18:40, 24 August 2013 by Mighty (talk | contribs) (new page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
property Sorted: Boolean
 Access mode: RW

Description

Sorted can be set to True in order to cause the list of strings to be sorted. Further additions to the list will be inserted at the correct position so the list remains sorted at all times. Setting the property to False has no immediate effect, but will allow strings to be inserted at any position.

  • When Sorted is True, Insert cannot be used. For sorted lists, Add should be used instead.
  • If Sorted is True, the Duplicates setting has effect. This setting is ignored when Sorted is False.