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

Home

 
4D v19
VP SET COLUMN ATTRIBUTES

VP SET COLUMN ATTRIBUTES 


 

VP SET COLUMN ATTRIBUTES ( rangeObj ; propertyObj ) 
Parameter Type   Description
rangeObj  Object in Range of columns
propertyObj  Object in Object containing column properties

The VP SET COLUMN ATTRIBUTES command applies the attributes defined in the propertyObj to the columns in the rangeObj.

In rangeObj, pass an object containing a range. If the range contains both columns and rows, attributes are applied only to the columns.

The propertyObj parameter lets you specify the attributes to apply to the columns in the rangeObj. These attributes are:

 

Property  Type  Description 
width  number Column width expressed in pixels 
pageBreak  boolean  True to insert a page break before the first column of the range, else false 
visible boolean  True if the column is visible, else false 
resizable  boolean  True if the column can be resized, else false 
header  text  Column header text

 

Example  

To change the size of the second column and set the header, the following code:

 C_OBJECT($column;$properties)
 
 $column:=VP Column("ViewProArea";1) //column B
 $properties:=New object("width";100;"header";"Hello World")
 
 VP SET COLUMN ATTRIBUTES($column;$properties)

will result in:



See also 

VP Column
VP Get column attributes
VP Get row attributes
VP SET ROW ATTRIBUTES

 
PROPERTIES 

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

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v18 R2

 
ARTICLE USAGE

4D View Pro Reference ( 4D v19)