4D View v14PV Get document property |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D View v14
PV Get document property
|
PV Get document property ( area ; option ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
area | Longint |
![]() |
4D View area | |||||
option | Longint |
![]() |
Property number | |||||
Function result | Longint |
![]() |
Property value | |||||
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 option parameter:
Constant | Type | Value | Comment |
pv column count | Longint | 0 | Allows setting or reading of the number of columns displayed in the area. |
pv document modified | Longint | 4 | Allows setting or reading of the "modified" attribute of area. Associated values: pv value on or pv value off.
|
pv no external call | Longint | 3 | Allows forbidding of calls to 4D variables, methods and commands in the formulas of the area. Associated values: pv value on or pv value off.
|
pv picture count | Longint | 2 | This constant is read-only ( PV Get document property command). It returns the number of pictures pasted into the area. |
pv row count | Longint | 1 | Allows setting or reading of the number of rows displayed in the area. |
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))+".")
Product: 4D View
Theme: PV Document
Number:
15984
Created: 4D View 6.8
4D View Language ( 4D View v11.4)
4D View Language ( 4D View v12)
4D View Language ( 4D v13)
4D View Language ( 4D View v14 R2)
4D View Language ( 4D View v14)
4D View Language ( 4D View v14 R3)
4D View Language ( 4D View v14 R4)