4D v13

WR Get doc property

Home

 
4D Write v13
WR Get doc property

WR Get doc property 


 

WR Get doc property ( area ; property ) -> Function result 
Parameter Type   Description
area  Longint in 4D Write area
property  Integer in Number of the property to read
Function result  Real in Value for the property tested

The WR Get doc property command allows you to get the properties of the document currently opened in the 4D Write area referenced by area.

property can be set using one of the constants of the “WR Document properties” theme. You can either pass the constant name or its value.

For some properties, WR Get doc property returns 1 (True) or 0 (False). An example is property 2 (wr view ruler).

For other properties, WR Get doc property returns a number expressed in the current default unit. An example is property 37 (wr paper width).

For more information about the constants of the “WR Document properties” theme, refer to the description of the WR SET DOC PROPERTY command.

Example  

 
PROPERTIES 

Product: 4D
Theme: WR Area Control
Number: 89459

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D Write 6.5

 
SEE ALSO 

WR SET DOC PROPERTY