Skip to main content
Version: 20 R6 BETA

VP Column

VP Column ( vpAreaName : Text ; column: Integer ; columnCount : Integer { ; sheet : Integer } ) : Object

ParameterTypeDescription
vpAreaNameText->4D View Pro area form object name
columnInteger->Column index
columnCountInteger->Number of columns
sheetInteger->Sheet index (current sheet if omitted)
ResultObject<-Range object of cells

Description

The VP Column command returns a new range object referencing a specific column or columns.

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

The column parameter defines the first column of the column range. Pass the column index (counting begins at 0) in this parameter. If the range contains multiple columns, you should also use the optional columnCount parameter.

The optional columnCount parameter allows you to define the total number of columns of the range. columnCount must be greater than 0. If omitted, the value will be set to 1 by default and a column type range is created.

In the optional sheet parameter, you can designate a specific spreadsheet where the range will be defined (counting begins at 0). If omitted or if you pass vk current sheet, the current spreadsheet is used by default.

Example

You want to define a range object for the column shown below (on the current spreadsheet):

The code would be:

 $column:=VP Column("ViewProArea";3) // column D

See also

VP All
VP Cells
VP Cell
VP Combine ranges
VP Name
VP Row
VP SET COLUMN ATTRIBUTES