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:

  1. 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.

  2. 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.

  3. If the SORTED property is specified without an assignment, the action is the same as if SORTED=1 were given.

  4. {value} is a decimal number, a Numeric Variable, an Expression, or a keyword as defined in PLBEQU.INC. The supported values and keywords are:

  5.  

    Value

    Keyword

    List items are ...

    0

    $OFF

    not sorted. (default)

    1

    $ON

    sorted.

 

See Also: Object Properties, Object IO Instructions, Object Definitions

 



PL/B Language Reference SIZEMODE Property SORTHEADER Property