Skip to main content
Version: 20 R6 BETA

VP Combine ranges

VP Combine ranges ( rangeObj : Object ; otherRangeObj : Object {;...otherRangeObjN : Object } ) : Object

ParameterTypeDescription
rangeObjObject->Range object
otherRangeObjObject->Range object
ResultObject<-Object containing a combined range

Description

The VP Combine Ranges command returns a new range object that incorporates two or more existing range objects. All of the ranges must be from the same 4D View Pro area.

In rangeObj, pass the first range object.

In otherRangeObj, pass another range object(s) to combine with rangeObj.

The command incorporates rangeObj and otherRangeObj objects by reference.

Example

You want to combine cell, column, and row range objects in a new, distinct range object:

 $cell:=VP Cell("ViewProArea";2;4) // C5
$column:=VP Column("ViewProArea";3) // column D
$row:=VP Row("ViewProArea";9) // row 10

$combine:=VP Combine ranges($cell;$column;$row)

See also

VP All
VP Cells
VP Column
VP Name
VP Row
VP SET COLUMN ATTRIBUTES