Help / WLanguage / WLanguage functions / Controls, pages and windows / Looper functions
  • Use conditions
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
<Looper>.Count (Function)
In french: <Zone répétée>.Occurrence
Returns the number of rows in a Looper control.
// Number of rows found in the "LOOP_Looper1" Looper control?
Result1 is int
Result1 = LOOP_Looper1.Count()
// Displays the number of answers found: (ex: "There are 31 answers")
STC_CAPTION1 = "There are " + LOOP_ResultLooper.Count() + " answers"
<Result> = <Looper control>.Count([<Row/Attribute>])
<Result>: Integer
  • Number of rows found in a Looper control,
  • 0 if the Looper control is empty.
<Looper control>: Control name
Name of the Looper control to be used.
<Row/Attribute>: Optional constant
toColumnNumber of attributes found in the Looper control.
toShown Number of non-empty visible rows.
(Default value)
Looper control based on a data file:
  • Total number of records:
    • in the linked data file (if there is no filter).
    • filtered in the linked data file (if there is a filter).
    • in the query (if the Looper control is linked to a query).
  • Number of visible records.
Caution: the "End of initialization" event is run once the total is calculated.
Looper control populated programmatically:
Total number of rows added by <Looper>.Add, <Looper>.AddLine, <Looper>.Insert or <Looper>.InsertLine.
toVisibleNumber of visible rows (including the empty rows or the rows partially displayed). Corresponds to the maximum number of rows that can be displayed in the Looper control.
Universal Windows 10 App This parameter is ignored in this version.

Use conditions

<Looper>.Count can be used on:
  • a Looper control based on a data file,
  • a Looper control populated programmatically.
Component: wd290obj.dll
Minimum version required
  • Version 23
This page is also available for…
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help