PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
LooperSelect (Function)
In French: ZoneRépétéeSelect
Returns the subscript of selected element in a Looper control. The selected element corresponds to the current row on which the selection bar is displayed.
Note: LooperSelect can be used on:
  • a browsing or memory Looper control.
  • a single-selection or multi-selection Looper control. For the multi-selection Looper controls, LooperSelect must be used in a loop in order to retrieve all selected rows.
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.
WEBDEV - Server codeWindowsLinux This function is now available for the WEBDEV sites.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
WEBDEV - Server codeWindowsLinux This function is now available for the WEBDEV sites.
iPhone/iPad This function is now available for the iPhone/iPad applications.
WEBDEV - Server codeWindowsLinux This function is now available for the WEBDEV sites.
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
// Subscript of selected row in the "LOOP_Product" looper
ResSelect = LooperSelect(LOOP_Product)
// Rows selected in a multi-selection memory looper
i is int
NbSelected is int = LooperSelectCount(LOOP_Looper1)
FOR i = 1 TO NbSelected
Trace("Selected element: " + LooperSelect(LOOP_Looper1, i))
END
Syntax
<Result> = LooperSelect(<Looper Control> [, <Rank>])
<Result>: Integer
  • Subscript of selected row in the specified Looper control,
  • -1 if no row is selected.
<Looper Control>: Control name
Name of Looper control to use.
If this parameter corresponds to an empty string (""), the Looper control to which the current process belongs will be used.
<Rank>: Optional integer
Rank of selection for a multi-selection Looper control.
If this parameter is not specified, the subscript of first selected row is returned.
For example, to retrieve the first selected element, <Rank> = 1.
To retrieve the second selected element, <Rank> = 2, ...
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment