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

Home

 
4D v19
VP ADD SPAN

VP ADD SPAN 


 

VP ADD SPAN ( rangeObj ) 
Parameter Type   Description
rangeObj  Object in Range object

The VP ADD SPAN command combines the cells in rangeObj as a single a span of cells.

In rangeObj, pass a range object of cells. The cells in the range are joined to create a larger cell extending across multiple columns and/or rows. You can pass multiple cell ranges to create several spans at the same time. Note that if cell ranges overlap, only the first cell range is used.

Notes

  • Only the data in the upper-left cell is displayed. Data in the other combined cells is hidden until the span is removed.
  • Hidden data in spanned cells is accessible via formulas (beginning with the upper-left cell).

Example  

To span the First quarter and Second quarter cells across the two cells beside them, and the South area cell across the two rows below it:

use this code:

  // First quarter range
 $q1:=VP Cells("ViewProArea";2;3;3;1)
 
  // Second quarter range
 $q2:=VP Cells("ViewProArea";5;3;3;1)
 
  // South area range
 $south:=VP Cells("ViewProArea";0;5;1;3)
 
 VP ADD SPAN(VP Combine ranges($q1;$q2;$south))

The created spans:



See also 

4D View Pro Range Object Properties
VP Get spans
VP REMOVE SPAN

 
PROPERTIES 

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

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v18 R4

 
ARTICLE USAGE

4D View Pro Reference ( 4D v19)