Skip to main content
Version: 20 R7 BETA

VP Get column count

VP Get column count ( vpAreaName : Text { ; sheet : Integer } ) : Integer

ParameterTypeDescription
vpAreaNameText->4D View Pro area from object name
sheetInteger->Sheet index (current sheet if omitted)
ResultInteger<-Total number of columns

Description

The VP Get column count command returns the total number of columns from the designated sheet.

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

You can define where to get the column count in the optional sheet parameter using the sheet index (counting begins at 0). If omitted or if you pass vk current sheet, the current spreadsheet is used.

Example

The following code returns the number of columns in the 4D View Pro area:

C_INTEGER($colCount)
$colCount:=VP Get column count("ViewProarea")

See also

VP Get row count
VP SET COLUMN COUNT
VP SET ROW COUNT