Command PV SET COLUMN HEADER

4D View

PV SET COLUMN HEADER

version 6.8


PV SET COLUMN HEADER (area; column; title)

ParameterTypeDescription
areaLongint4D View area
columnLongintColumn number
titleStringColumn name

Description

The PV SET COLUMN HEADER command sets the title of the specified column.

For more information on the default names of rows and columns, refer to the PV Columns & rows, Introduction section.

Example

In this example, we will assign a new name to the first 10 columns and rows of the area.

   C_INTEGER($Index)  `Loop index
   C_STRING(80;$Title)  `Column/row name
   
   For ($Index;1;10)
      PV GET COLUMN HEADER (Area;$Index;$Title)  `Get name of the $Index column
      $Title:="Column"+$Title"  `Modify name
      PV SET COLUMN HEADER (Area;$Index;"C"+$Title)  `Assign new name

         `Read, modify and assign new name for the $Index row
      PV SET ROW HEADER (Area;$Index;"L"+PV Get row header (Area;$Index))
   End for 

   

See Also

PV GET COLUMN HEADER, PV SET ROW HEADER.