PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

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
NbLinesPerPage is used to:
  • Get and change the maximum number of rows per page in a Table control.
  • Get and change the maximum number of rows per page in a Looper control.
    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