SORTED Property
PLBCMP GUI Only
The SORTED property instructs the runtime to automatically sort the items in the object. The property uses the following format:
SORTED[={value}]
Note the following:
SORTED may be used in CREATE or GETPROP statements for the COMBOBOX, DATALIST, or POPUPMENU objects. For the COMBOBOX object, the SORTED property can be used in CREATE, GETPROP, or SETPROP statements.
When the SORTED property is used, Windows controls the sorting method. The Windows method is to sort the item name field alphabetically starting with the first character. Windows does not support any alternative sorting methods.
If the SORTED property is specified without an assignment, the action is the same as if SORTED=1 were given.
{value} is a decimal number, a Numeric Variable, an Expression, or a keyword as defined in PLBEQU.INC. The supported values and keywords are:
|
Value |
Keyword |
List items are ... |
|
0 |
$OFF |
not sorted. (default) |
|
1 |
$ON |
sorted. |
See Also: Object Properties, Object IO Instructions, Object Definitions
![]() |