Returns and sets the sorted property value. If True, the contents of the object are alphabetically sorted.
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. |
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. |
This property can be set at run time as well - the list and itemdata will be reset after changing the sort property.
The following statement forces the contents of the AComboBox control to be sorted alphabetically:
cb1.Sorted=True