PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..Sorted is used to:
  • Find out whether a control is sorted.
  • Sort a control or not.
WEBDEV - Server code This property is used to:
  • find out whether the memory List Box and Combo Box controls are sorted.
  • Versions 16 and later
    find out whether the Image, Clickable Image, and Thumbnail controls with automatic scroll are sorted.
    New in version 16
    find out whether the Image, Clickable Image, and Thumbnail controls with automatic scroll are sorted.
    find out whether the Image, Clickable Image, and Thumbnail controls with automatic scroll are sorted.
  • Versions 16 and later
    sort the Image, Clickable Image, and Thumbnail controls with automatic scroll.
    New in version 16
    sort the Image, Clickable Image, and Thumbnail controls with automatic scroll.
    sort the Image, Clickable Image, and Thumbnail controls with automatic scroll.
Notes:
  • The Sorted option is used to sort the elements in the List Box or Combo Box control when it is displayed. If the control is sorted, the elements will be added (ListAdd) taking the sort into account (elements will be actually inserted).
  • For the ListView controls, the sort is performed according to the captions 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

Find out whether a control is sorted Hide the details

<Result> = <Control name>..Sorted
<Result>: Boolean
  • True if the specified control is sorted,
  • False otherwise.
<Control name>: Character string (with or without quotes)
Name of control to use:
  • Name of the List Box or ListView control.
  • Name of the Combo Box control.
  • Versions 16 and later
    WEBDEV - Server code Name of Image, Clickable Image or Thumbnail control with automatic scroll.
    New in version 16
    WEBDEV - Server code Name of Image, Clickable Image or Thumbnail control with automatic scroll.
    WEBDEV - Server code Name of Image, Clickable Image or Thumbnail control with automatic scroll.

Sort a control or not Hide the details

<Control name>..Sorted = <To sort>
<Control name>: Character string (with or without quotes)
Name of the control to sort:
  • Versions 16 and later
    WEBDEV - Server code Name of Image, Clickable Image or Thumbnail control with automatic scroll.
    New in version 16
    WEBDEV - Server code Name of Image, Clickable Image or Thumbnail control with automatic scroll.
    WEBDEV - Server code Name of Image, Clickable Image or Thumbnail control with automatic scroll.
<To sort>: Boolean
  • True if the specified control must be sorted,
  • False otherwise.
Remarks

Limits

WEBDEV - Server code ..Sorted only applies to:
  • the memory List Box and Combo Box controls.
  • Versions 16 and later
    the Image, Clickable Image or Thumbnail controls with automatic scroll.
    New in version 16
    the Image, Clickable Image or Thumbnail controls with automatic scroll.
    the Image, Clickable Image or Thumbnail controls with automatic scroll.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment