Command PV Get document property

4D View

PV Get document property

version 6.8


PV Get document property (area; option) Longint

ParameterTypeDescription
areaLongint4D View area
optionLongintProperty number

Function result Longint Property value

Description

The PV Get document property command returns the current value of the option parameter for the document in area.

The PV Document properties constants are used to define the options.

Example

Build a method that updates variables containing both the number of columns and the number of rows of the 4D View area passed in the first parameter.

   C_LONGINT($ColNum)  `Number of columns
   C_LONGINT($RowNum)  `Number of rows
   C_LONGINT($PicNum)  `Number of pictures

   $ColNum:=PV Get document property (Area;pv column coun )
   $RowNum:=PV Get document property (Area;pv row coun )
   $PicNum:=PV Get document property (Area;pv picture count )

   ALERT(" The 4D View area contains "+String($ColNum)+" column"+("s"*Num($ColNum>1))
                        +" and "+String($RowNum)+" row"+("s"*Num($RowNum>1))
                        +". It contains "+String($PicNum)+" picture"+("s"*Num($PicNum>1))+".")

See Also

PV SET DOCUMENT PROPERTY.

Constants

PV Document properties theme.