PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Use conditions
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
LooperCount (Function)
In french: ZoneRépétéeOccurrence
Returns the number of rows found in a browsing or memory Looper control.
Example
// Number of rows found in the "LOOP_Looper1" Looper control?
Result1 is int
Result1 = LooperCount(LOOP_Looper1)
// Displays the number of answers found: (ex: "There are 31 answers")
STC_CAPTION1 = "There are " + LooperCount(LOOP_ResultLooper) + " answers"
Syntax
<Result> = LooperCount(<Looper control> [, <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 Looper control to use.
If this parameter corresponds to an empty string (""), the count will be performed on the current Looper control.
<Row/Attribute>: Optional constant
toShown Number of non-empty visible rows.
toColumnNumber of attributes found in the Looper control.
toTotal
(Default value)
Browsing Looper control:
  • 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.
Memory Looper control:
Number of rows in memory (rows added by LooperAdd, LooperAddLine, LooperInsert and LooperInsertLine).
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

LooperCount can be used on a browsing or memory Looper control.
Component : wd240obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment