Sorted

Applies to

DropDownListBox, DropDownPictureListBox, ListBox, PictureListBox controls

Description

Items in a list box can be sorted alphabetically. If the Sorted property is enabled, the items in the list box are sorted in ascending order. If this property is not enabled, the items in the list box are not sorted and are displayed in the order in which they were added.

Usage

In a painter

To enable automatic sorting:

  • Select the Sorted check box on the General page of the control's Properties view.

In scripts

The Sorted property takes a boolean value. The following line specifies that items in the ListBox lb_1 are sorted:

lb_1.Sorted = TRUE