ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
NbLinesPerPage (Property)
In french: NbLignesParPage
The NbLinesPerPage property is used to:
  • Get and set the maximum number of Table rows per page.
  • Get and set the maximum number of Looper rows per page.
    Caution: if the Looper control has multiple columns, the NbLinesPerPage property corresponds to the maximum total number of occurrences displayed in the Looper control (number of columns multiplied by the number of rows).
Reminder: The number of rows per page is the maximum number of rows from a Table or Looper control that can be displayed in a page. This option is used to optimize the size of pages. This number is defined in the control description:
  • For Looper controls: "General" tab of the control description.
  • For Table controls: "Details" tab of the control description.
Example
// Displays 20 rows of the Looper control on a page
LOOP_Looper1.NbLinesPerPage = 20
Syntax

Finding out the maximum number of rows per page Hide the details

<Number of rows> = <Control used>.NbLinesPerPage
<Number of rows>: Integer
Maximum number of rows currently defined.
<Control used>: Control name
Name of the control used: Table control or Looper control.

Modifying the maximum number of rows per page Hide the details

<Control used>.NbLinesPerPage = <New number of rows>
<Control used>: Control name
Name of the control used: Table control or Looper control.
<New number of rows>: Integer
Maximum number of rows per page. This number must not be equal to 0.
Remarks
  • There is no need to call TableDisplay or LooperDisplay to take into account the new maximum number of rows per page.
  • This property has no effect if the Looper and/or Table control is in Ajax mode.
  • This property is not available for TreeView Table controls.
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 03/29/2023

Send a report | Local help