Sorted Property (AComboBox)

Returns and sets the sorted property value. If True, the contents of the object are alphabetically sorted.

Syntax

Object.Sorted [ = bSorted ]

The Sorted property syntax has the following parts:

 

Name

Type

Description

Object

AComboBox

AComboBox control

bSorted

Bool

A boolean expression that specifies if the contents of the control will be sorted alphabetically.

Where

bSorted can be one of the following:

 

Value

Description

True

The contents of the control will be sorted alphabetically.

False *

The contents of the control will not be sorted.

Comments

This property can be set at run time as well - the list and itemdata will be reset after changing the sort property.

Example

The following statement forces the contents of the AComboBox control to be sorted alphabetically:

cb1.Sorted=True

Applies to

AComboBox

See Also

FindItem