PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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
LooperSelect (Function)
In french: ZoneRépétéeSelect
Returns the index of the selected element in a Looper control. The selected element corresponds to the current row on which the selection bar is displayed.
Remark: LooperSelect can be used on:
  • a Looper control based on a data file or populated programmatically.
  • a single-selection or multi-selection Looper control. For multi-selection Looper controls, LooperSelect must be used in a loop in order to retrieve all selected rows.
Example
// Index of the selected row in "LOOP_Product"
ResSelect = LooperSelect(LOOP_Product)
// Rows selected in the multi-selection Looper control populated programmatically
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
  • Index of the selected row in the specified Looper control,
  • -1 if no row is selected.
<Looper control>: Control name
Name of the Looper control to be used.
If this parameter corresponds to an empty string (""), the Looper control to which the current event belongs is used.
<Rank>: Optional integer
Rank of selection for a multi-selection Looper control.
If this parameter is not specified, the index of the first selected row is returned.
For example, to retrieve the first selected element, <Rank> = 1.
To retrieve the second selected element, <Rank> = 2, ...
Business / UI classification: UI Code
Component: wd280obj.dll
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment