4D v13.4

QR Get text property

Home

 
4D v13.4
QR Get text property

QR Get text property 


 

QR Get text property ( area ; colNum ; rowNum ; property ) -> Function result 
Parameter Type   Description
area  Longint in Reference of the area
colNum  Longint in Column number
rowNum  Longint in Break number
property  Longint in Operator value for the cell
Function result  Longint in Value for the selected property

The QR Get text property command returns the property value of the text attributes for the cell determined by colNum and RowNum.

area is the reference of the Quick Report area.

colNum is the number of the cell column.

rowNum is the reference of the cell row.You can either pass:

  • a positive value designating the corresponding subtotal (break) level,
  • one of the constants of the the QR Rows for Properties theme:
    Constant Type Value Comment
    qr detail Longint -2 Detail area of report
    qr footer Longint -5 Page footer
    qr grand total Longint -3 Grand total area
    qr header Longint -4 Page header
    qr title Longint -1 Title of report

Note: When passing -4 or -5 as rowNum, you still need to pass a column number in colNum, even if it is not used.

Note: In cross-table mode, the principle is similar except for the row values, which are always positive.

property is the value of the text attribute to get. You can use the constants of the QR Text Properties theme, and the following values can be returned:

Constant (value)Returned value
qr font (1)font number as returned through Font number
qr font size (2)font size expressed in points (9 to 255)
qr bold (3)Bold style attribute (0 or 1)
qr italic (4)Italic style attribute (0 or 1)
qr underline (5)font Underline style attribute (0 or 1)
qr text color (6)font Color attribute (color number)
qr justification (7)font Justification attribute (0 for default, 1 for left, 2 for center or 3 for right).
qr background color (8)background color
qr alternate background color (9)alternate background color

If you pass an invalid area number, the error -9850 will be generated.
If you pass an invalid colNum number, the error -9852 will be generated.
If you pass an invalid rowNum number, the error -9853 will be generated.
If you pass an invalid property number, the error -9854 will be generated.

 
PROPERTIES 

Product: 4D
Theme: Quick Report
Number: 760

This command modifies the Error system variable

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D 2003

 
SEE ALSO 

QR SET TEXT PROPERTY