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
  • Combo Box control
  • Miscellaneous
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Deselects an element 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 ListSelectMinus 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.
Android Please note: If the Combo Box control is not empty, it must have an item selected..
Example
// Désélection de l'élément dont l'indice est 7 dans le champ "LISTE_ListeClient"
ListSelectMinus(LISTE_ListeClient, 7)
Syntax
ListSelectMinus(<List Box control> [, <Index 1> [... [, <Index N>]]])
<List Box control>: Control name
Name of List Box (or Combo Box) control to use. If this parameter corresponds to an empty string (""), the element specified by its index is deselected in the List Box control (or Combo Box) to which the current event belongs.
WEBDEV - Browser code The name of the List Box (or Combo Box) control to use must be specified.
<Index 1>: Optional integer
Index of the first element to deselect.
If no index is specified, all the elements in the specified List Box or Combo Box control are deselected.
ListSelectMinus has no effect if these indexes correspond to elements that are not selected.
<Index N>: Optional integer
Index of the Nth element to deselect.
If no index is specified, all the elements in the specified List Box or Combo Box control are deselected.
ListSelectMinus has no effect if these indexes correspond to elements that are not selected.
Remarks

Combo Box control

If ListSelectMinus is used with a Combo Box control:
  • no element of Combo Box control is displayed,
  • if the Combo Box control is editable, the edit control is cleared.

Miscellaneous

  • To deselect an element from a Table control, use TableSelectMinus.
  • ListSelectMinus can be used on a "Combo Box" table column.
Component: wd300obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/18/2024

Send a report | Local help