PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Last element
  • Equivalence
  • Miscellaneous
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
Selects one or more elements in a List Box (or ListView) control or in a Combo Box control.
The element is selected but it is not displayed if it is not visible. To make the selected element visible, use <List Box>.Position.
Reminder: The selected element corresponds to the current element onto which the selection bar is displayed.
Note: <List Box>.SelectPlus can be used on:
  • the browsing or memory List Box controls,
  • single-selection or multiselection Looper controls.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 18 and later
Android This function is now available for 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 Android applications.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android This function is now available for 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
// Select the element found at subscript 7 in "LIST_CustomerList"
LIST_CustomerList.SelectPlus(7)
Syntax
<List Box control>.SelectPlus([<Subscript 1> [... [, <Subscript N>]]])
<List Box control>: Control name
Name of List Box (or Combo Box) control to use.
<Subscript 1>: Optional integers
Subscript of first element to select.
If no subscript is specified, all the elements found in the specified List Box or Combo Box control are selected.
<List Box>.SelectPlus has no effect if these parameters correspond to elements that are already selected.
<Subscript N>: Optional integer
Subscript of Nth element to select.
If no subscript is specified, all the elements found in the specified List Box or Combo Box control are selected.
<List Box>.SelectPlus has no effect if these parameters correspond to elements that are already selected.
Remarks

Last element

To position on the last element of List Box control, use the following syntax:
<List Box control>.SelectPlus(<List Box control>..Count)
or
<List Box control> = <List Box control>..Count
or
<List Box control> = <List Box control>.Count()

Equivalence

For a single-selection List Box control without calling gLink, the two following syntaxes are equivalent:
<List Box control>.SelectPlus(<Subscript>)
and
<List Box control> = <Subscript>

Miscellaneous

  • To select an element in a Table control, use <Table>.SelectPlus.
  • <List Box>.SelectPlus can be used on a "Combo Box" table column.
  • <List Box>.SelectMinus allows you to deselect the elements of a List Box or Combo Box control.
Component : wd250obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment