ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
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 ListSelectCount 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 = ListSelectCount(LISTE_ListeClient)
Syntax
<Result> = ListSelectCount(<List Box control>)
<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.
If this parameter corresponds to an empty string (""), the number of elements selected in the List Box control (or Combo Box) to which the current event belongs is returned.
WEBDEV - Browser code The name of List Box (or Combo Box) control to use must necessarily be specified.
Remarks
WINDEVReports and QueriesJavaUser code (UMC)

Miscellaneous

ListSelectCount can be used on a "Combo Box" table column.
Component: wd300obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
I will show you how to handle the total number of people selected.
Nessa aula vou criar uma Listbox
Vou fazer ela ficar em varias colunas
vou mostrar como pega total de quantos estao selecionadas
//=========================
In this class I will create a Listbox
I'll make her stay in several columns
I will show you how to handle the total number of people selected.
//=========================
Cette classe va créer un Listbox
Je vais faire son séjour dans plusieurs colonnes
Je vais montrer la capture totale de tous ceux qui sont sélectionnés
//=========================

SAI_QuantosSelecionou=ListSelectCount(LISTE_estados)
//Vai me informar Quantos Estados estão Selecionados

//=========================

http://windevdesenvolvimento.blogspot.com.br/2017/03/aula-1079-windev-listbox-010-listbox.html

https://doc.windev.com/en-US/?3049010&name=ListSelectCount

De matos
10 Mar. 2017

Last update: 09/18/2024

Send a report | Local help