PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Various
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: ListSelectCount can be used on:
  • the browsing or memory List Box controls,
  • the single-selection or multi-selection List Box controls.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android This function is now available for the 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 the Android applications.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android This function is now available for the 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 = ListSelectCount(LIST_CustomerList)
Syntax
<Result> = ListSelectCount(<List Box Control>)
<Result>: Integer
Number of elements selected in the specified list box (or combo box). This parameter:
  • can be greater than 1 for multi-selection list boxes,
  • is equal to 1 if the combo box is not editable or if the combo box is editable and if an element is selected,
  • is equal to 0 if the combo box is editable and if 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 (or Combo Box) control to which the current process belongs is returned.
WEBDEV - Browser code The name of List Box (or Combo Box) control to use must necessarily be specified.
Remarks
WINDEVReports and QueriesWindows MobileJavaUser code (UMC)

Various

ListSelectCount can be used on a "Combo box" table column.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • 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
Mar. 10 2017