This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19
VP SET ROW COUNT

VP SET ROW COUNT 


 

VP SET ROW COUNT ( vpAreaName ; rowCount {; sheet} ) 
Parameter Type   Description
vpAreaName  Text in 4D View Pro area form object name
rowCount  Longint in Number of rows
sheet  Longint in Sheet index (current sheet if omitted)

The VP SET ROW COUNT command defines the total number of rows in vpAreaName.

In vpAreaName, pass the name of the 4D View Pro area. If you pass a name that does not exist, an error is returned.

Pass the total number of rows in the rowCount parameter. rowsCount must be greater than 0. 

In the optional sheet parameter, you can designate a specific spreadsheet where the rowCount will be applied (counting begins at 0). If omitted, the current spreadsheet is used by default. You can explicitly select the current spreadsheet with the following constant:

 

Constant Type Value Comment
vk current sheet Longint -1 Designates current sheet of the 4D View Pro area (default)

Example  

The following code defines five rows in the 4D View Pro area:

 

 VP SET ROW COUNT("ViewProArea";5)

 

The result:

 



See also 

VP Get column count
VP Get row count
VP SET COLUMN COUNT

 
PROPERTIES 

Product: 4D
Theme: 4D View Pro Language
Number: 9949

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v18 R2

 
ARTICLE USAGE

4D View Pro Reference ( 4D v19)