Skip to main content
Version: Next

QR Get text property

QR Get text property ( area ; colNum ; rowNum ; property ) : any

ParameterTypeDescription
areaIntegerReference of the area
colNumIntegerColumn number
rowNumIntegerRow number
propertyIntegerProperty number
Function resultLongint, StringValue for the selected property

This command is not thread-safe, it cannot be used in preemptive code.

Description

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 QR Rows for Properties theme:
ConstantTypeValueComment
qr detailInteger-2Detail area of report
qr footerInteger-5Page footer
qr grand totalInteger-3Grand total area
qr headerInteger-4Page header
qr titleInteger-1Title 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:

ConstantTypeValueComment
_o_qr fontInteger1Obsolete since 4D v14R3 (use qr font name)
qr alternate background colorInteger9Alternate background color number
qr background colorInteger8Background color number
qr boldInteger3Bold style attribute (0 or 1)
qr font nameInteger10Name of font as returned for example by the FONT LIST command
qr font sizeInteger2Font size expressed in points (9 to 255)
qr italicInteger4Italic style attribute (0 or 1)
qr justificationInteger7Justification attribute (0 for default, 1 for left, 2 for center or 3 for right)
qr text colorInteger6Color number attribute (Longint)
qr underlineInteger5Underline style attribute (0 or 1)

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.

See also

QR SET TEXT PROPERTY