ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Looper functions
  • Use conditions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
<Looper>.Count (Function)
In french: <Zone répétée>.Occurrence
Returns the number of rows in a Looper control.
Example
// Nombre de répétitions dans le champ Zone répétée "ZR_Zone1" ?
Résultat1 is int
Résultat1 = ZR_Zone1.Occurrence()
// Affiche le nombre de réponses trouvées : (ex : "Il y a 31 réponses")
LIB_LIBELLE1 = "Il y a " + ZR_ZoneResultat.Occurrence() + " réponses"
Syntax
<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.
toTotal
(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.
Warning the "End of initialization" event is only executed when the total has been 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.
Remarks

Use conditions

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

Last update: 09/26/2024

Send a report | Local help