ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Limitations
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The Sorted property is used to:
  • Determine if a control is sorted.
  • Sort a control.
Remarks:
  • The Sorted property sorts the elements in the List Box or Combo Box control when it is displayed. If the control is sorted, new elements will be inserted (ListAdd) according to the current order.
  • For ListView controls, the sort order is defined according to the caption of the elements.
  • This option can be chosen in the window or page editor in the control description ("Details" tab, "Sorted list" option).
Example
ListAdd(LIST_List1, "CC")
ListAdd(LIST_List1, "DD")
ListAdd(LIST_List1, "BB")
LIST_List1.Sorted = True
// The order in the List Box control becomes BB, CC, DD
ListAdd(LIST_List1, "AA") // Will be inserted at the beginning of the list
Syntax

Determining if a control is sorted Hide the details

<Result> = <Control used>.Sorted
<Result>: Boolean
  • True if the specified control is sorted,
  • False otherwise.
<Control used>: Control name
Name of the control to be used:
  • Name of the List Box or ListView control.
  • Name of the Combo Box control.

Sorting a control Hide the details

<Control used>.Sorted = <To sort>
<Control used>: Control name
Name of the control to sort:
    <To sort>: Boolean
    • True if the specified control must be sorted,
    • False otherwise.
    Remarks

    Limitations

    Minimum version required
    • Version 9
    This page is also available for…
    Comments
    Click [Add] to post a comment

    Last update: 02/08/2024

    Send a report | Local help