Returns and sets the sorted property value. If True, the contents of the object are alphabetically sorted.
[ bSorted = ] Object.Sorted
The Sorted property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
AListBox |
AListBox control |
|
bSorted |
Bool |
A boolean expression that specifies if the contents of the control are 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 returns whether the contents of the AListBox are alphabetically:
blb1Sorted = lb1.Sorted
The following statement forces the contents of the AListBox control to be sorted alphabetically:
lb1.Sorted=True