PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Miscellaneous
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
Returns the number of elements selected in a List Box (or ListView) control or in a Combo Box control.
Reminder: The selected element corresponds to the current element onto which the selection bar is displayed.
Note: <List Box>.SelectCount can be used on:
  • the browsing or memory List Box controls,
  • single-selection or multiselection Looper controls.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 18 and later
Android This function is now available for Android applications.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android This function is now available for Android applications.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android This function is now available for Android applications.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Number of elements selected in the "LIST_CustomerList" control
ResSelectedElements = LIST_CustomerList.SelectCount()
Syntax
<Result> = <List Box control>.SelectCount()
<Result>: Integer
Number of elements selected in the specified List Box (or Combo Box) control. This parameter:
  • can be greater than 1 only if the List Box control is multiselection,
  • is equal to 1 if the Combo Box control is not editable or if the Combo Box control is editable and if an element is selected,
  • is equal to 0 if the Combo Box control is editable and no element is selected.
<List Box control>: Control name
Name of List Box (or Combo Box) control to use.
Remarks
Windows Mobile

Miscellaneous

<List Box>.SelectCount can be used on a "Combo Box" table column.
Component : wd240obj.dll
Minimum required version
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment