PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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.
Versions 15 and later
WINDEVAndroid This function is now available for the Android applications.
New in version 15
WINDEVAndroid This function is now available for the Android applications.
WINDEVAndroid This function is now available for the Android applications.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Universal Windows 10 App This function is now available for the Windows Phone applications.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
WEBDEV - Browser code This function is now available in Browser code.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
WEBDEV - Browser code This function is now available in Browser code.
iPhone/iPad This function is now available for the iPhone/iPad applications.
WEBDEV - Browser code This function is now available in Browser code.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
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
WEBDEV - Server code Default constant for a browsing Looper control.
Number of non-empty visible rows.
WEBDEV - Server codePHP This constant must not be used:
  • with Looper controls in AJAX mode.
  • with linear Looper controls.
Versions 17 and later
WEBDEV - Browser code This constant is not available.
New in version 17
WEBDEV - Browser code This constant is not available.
WEBDEV - Browser code This constant is not available.
toColumnNumber of attributes found in the Looper control.
toTotal
(Default value)
WEBDEV - Server code Default constant for a memory Looper control.
Browsing looper control:
  • Total number of records:
    • in the linked file (if there is no filter).
    • filtered of the linked 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" code is run when 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.
WEBDEV - Server codePHP This constant must not be used:
  • with Looper controls in AJAX mode.
  • with linear Looper controls.
Versions 17 and later
WEBDEV - Browser code This constant is not available.
New in version 17
WEBDEV - Browser code This constant is not available.
WEBDEV - Browser code This constant is not available.
Versions 16 and later
Universal Windows 10 App This parameter is ignored in this version.
New in version 16
Universal Windows 10 App This parameter is ignored in this version.
Universal Windows 10 App This parameter is ignored in this version.
Remarks

Use conditions

LooperCount can be used on a browsing or memory Looper control.
PHP LooperCount can be used on a memory Looper control only.
WEBDEV - Browser code This function is not available for the linear Looper controls. This function is available for the Browser Looper controls only.
WEBDEV - Server codePHP This function is available for the Ajax Looper controls, the Classic Looper controls and the linear Looper controls.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment