PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Selection bar and <Looper>.Position function
  • 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
<Looper>.Position (Function)
In french: <Zone répétée>.Position
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.
Example
// Subscript of first row displayed in the "LOOP_Product" Looper control
ResPosition = LOOP_Product.Position()
Syntax

Displaying a Looper control from a specific row Hide the details

<Looper control>.Position(<Subscript>)
<Looper control>: Control name
Name of Looper control to use.
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 <Looper>.Count).

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

<Result> = <Looper control>.Position()
<Result>: Integer
Subscript of first row displayed in the specified Looper control.
<Looper control>: Control name
Name of Looper control to use.
Caution: No linear Looper control can be used.
Remarks

Selection bar and <Looper>.Position function

<Looper>.Position does not change the current row (i.e. the row selected with the selection bar).
Therefore, if the Looper control has focus when <Looper>.Position 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, <Looper>.Position tries to display as many rows as possible in the Looper control.
<Looper>.Position will display the specified row only if this row is followed by a sufficient number of non-empty rows.
Component : wd250obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment