PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

X
Y
  • 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.
WINDEVWindows Mobile This property is available for the memory List Box, ListView and Combo Box controls.
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 found in the List Box or Combo Box control when it is displayed. If the list box is sorted, the additions (ListAdd) will be performed by taking the sort order 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 selected in the window editor or in the page editor during the control description ("Details" tab, "Sorted list" option).
Versions 15 and later
Android This property is now available for the Android applications.
New in version 15
Android This property is now available for the Android applications.
Android This property is now available for the Android applications.
Versions 18 and later
Universal Windows 10 App This property is now available in Windows Store Apps mode.
New in version 18
Universal Windows 10 App This property is now available in Windows Store Apps mode.
Universal Windows 10 App This property is now available in Windows Store Apps mode.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Example
ListAdd(LIST_List1, "CC")
ListAdd(LIST_List1, "DD")
ListAdd(LIST_List1, "BB")
LIST_List1..Sorted = True
// The order in the list 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:
  • WINDEVWindows Mobile Name of the List Box or ListView control
  • WINDEVWindows Mobile 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
<To Sort>: Boolean
  • True if the specified control must be sorted,
  • False otherwise.
Remarks

Limits

WINDEVWindows Mobile ..Sorted only applies to the memory List Box, ListView and Combo Box controls. ..Sorted does not apply to the Table List Box and Combo Box controls.
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 required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment