PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Selection bar and LooperPosition
  • Displaying a row at the top of the Looper control (syntax 1)
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
LooperPosition (Function)
In French: ZoneRépétéePosition
Moves the scrollbar of a memory Looper control to display a specific row or returns the subscript of first row displayed in a memory Looper control.
Versions 15 and later
Android This function is now available for the Android applications.
WEBDEV - Server codePHP This function is now available for the PHP sites.
New in version 15
Android This function is now available for the Android applications.
WEBDEV - Server codePHP This function is now available for the PHP sites.
Android This function is now available for the Android applications.
WEBDEV - Server codePHP This function is now available for the PHP sites.
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.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
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
// Subscript of first row displayed in the "LOOP_Product" looper
ResPosition = LooperPosition(LOOP_Product)
Syntax

Displaying a looper control from a specific row Hide the details

LooperPosition(<Looper Control> , <Subscript>)
<Looper Control>: Control name
Name of Looper control to use.
If this parameter corresponds to an empty string (""), the Looper control to which the current process belongs will be used.
Caution: No linear Looper control can be used.
<Subscript>: Integer
Subscript of row that will be displayed at the top of Looper control.
The last row is selected by default if this parameter is greater than the number of rows found in the Looper control (returned by LooperCount).

Finding out the subscript of first row displayed in a Looper control Hide the details

<Result> = LooperPosition(<Looper Control>)
<Result>: Integer
Subscript of first row displayed in the specified Looper control.
<Looper Control>: Control name
Name of Looper control to use.
If this parameter corresponds to an empty string (""), the Looper control to which the current process belongs will be used.
Caution: No linear Looper control can be used.
Remarks

Selection bar and LooperPosition

LooperPosition does not modify the current row (which means the row selected via the selection bar).
Therefore, if the Looper control has focus when LooperPosition is run, the current row and the specified row must be visible at the same time. If the current row and the specified row cannot be displayed at the same time, the Looper control will be displayed from the current row (and not from the row specified by <Subscript>).

Displaying a row at the top of the Looper control (syntax 1)

The row displayed at the top of the looper may differ from the requested one. Indeed, LooperPosition tries to display as many rows as possible in the Looper control.
LooperPosition will only display the specified row if this row is followed by a sufficient number of non-empty rows.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment