Returns the number of selected rows in a Looper control. The selected rows correspond to the current rows on which the selection bar is displayed.
Remark: LooperSelectCount can be used on:
- a Looper control based on a data file or populated programmatically.
- a single-selection or multi-selection Looper control.
i is int
NbSelected is int
NbSelected = LooperSelectCount(LOOP_PRODUCT)
FOR i = 1 TO NbSelected
Trace("Selected row: " + i)
<Result> = LooperSelectCount(<Looper control>)
This number can be higher than 1 for multi-selection Looper controls.
- Number of rows selected in the specified Looper control,
- 0 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.
A WLanguage error occurs if this parameter does not correspond to the name of a Looper control.
Business / UI classification: UI Code