ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / List Box functions
  • Miscellaneous
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns the number of elements selected in a List Box, ListView or Combo Box control.
Reminder: The element selected corresponds to the current element on which selection bar is displayed.
Note: The <List Box>.SelectCount function can be used on both:
  • List Box controls based on a data file or populated programmatically,
  • single-selection or multi-selection List Box controls.
Example
// Nombre d'éléments sélectionnés dans le champ "LISTE_ListeClient"
ResElementSelect = LISTE_ListeClient.SelectOccurrence()
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 multi-selection,
  • 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
WINDEVReports and QueriesJavaUser code (UMC)

Miscellaneous

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

Last update: 09/26/2024

Send a report | Local help