PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Last element
  • Equivalence
  • Various
  • Selecting an element in a List Box control that belongs to a Looper control
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 ListPosition.
Reminder: The selected element corresponds to the current element onto which the selection bar is displayed.
Note: ListSelectPlus 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
// Select the element found at subscript 7 in "LIST_CustomerList"
ListSelectPlus(LIST_CustomerList, 7)
Syntax
ListSelectPlus(<List Box Control> [, <Subscript 1> [, ... [, <Subscript 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 identified by its subscript is selected in the List Box (or Combo Box) control to which the current process belongs.
WEBDEV - Browser code The name of List Box or Combo Box control to use must necessarily be specified.
<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.
ListSelectPlus 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.
ListSelectPlus 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:
ListSelectPlus(<List Box Control>, <List Box Control>..Occurrence)
or
<List Box Control> = <List Box Control>..Occurrence
or
<List Box Control> = ListCount(<List Box Control>)

Equivalence

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

Various

  • To select an element in a Table control, use TableSelectPlus.
  • ListSelectPlus can be used on a "Combo box" table column.
  • ListSelectMinus is used to deselect elements from a List Box or Combo Box control.
WEBDEV - Server codeWEBDEV - Browser codeAjax

Selecting an element in a List Box control that belongs to a Looper control

To select an element in a List Box control included in a Looper control, you must:
  1. Declare an attribute of Looper control on the value of List Box control.
  2. In the code of a button for example, specify the new attribute value for the requested looper row.
For example, if the attribute is ATT_SELECTROW, the following code will be used to select the 3rd element of List Box control in the 4th row:
ATT_SELECTROW[4] = 3
This code can be used in server code and in browser code.
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
Click [Add] to post a comment