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: <List Box>.SelectMinus 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"
LIST_CustomerList.SelectMinus(7)
Syntax
<List Box control>.SelectMinus([<Index 1> [... [, <Index N>]]])
<List Box control>: Control name
Name of List Box (or Combo Box) control to use.
<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.
<List Box>.SelectMinus 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.
<List Box>.SelectMinus has no effect if these indices correspond to elements that are not selected.
Remarks

Combo Box control

If <List Box>.SelectMinus 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 <Table>.SelectMinus.
  • <List Box>.SelectMinus 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: 06/19/2023

Send a report | Local help