Difference between revisions of "TStringList.Sorted"

From Soldat Community Wiki
Jump to: navigation, search
(new page)
 
(No difference)

Latest revision as of 17:40, 24 August 2013

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.