ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / List Box functions
  • Combo Box control
  • Miscellaneous
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Deselects an element in a List Box, ListView or Combo Box control.
Reminder: The selected element corresponds to the current element onto which the selection bar is displayed.
Remark: ListSelectMinus can be used on:
  • List Box controls based on a data file or populated programmatically,
  • single-selection or multi-selection List Box controls.
Android Caution: An element must necessarily be selected if the Combo Box control is not empty.
Example
// Deselect the element at index 7 from "LIST_CustomerList"
ListSelectMinus(LIST_CustomerList, 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 indices 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 indices 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: 05/26/2022

Send a report | Local help