Expressions

<< Click to Display Table of Contents >>

Navigation:  Delphi HTML Report Library > Tables >

Expressions

Field value and some of field parameters can be calculated using expressions.

For detailed description of expressions syntax and available functions please refer to the HTML Scripter documentation.

 

For field value use "value" attrubute. Example:

<FIELD value="copy(company, 1, pos(',', company) - 1)" .../>

 

Also expressions can be used in following FIELD attributes:

 

empty

class

align

format

template

style

 

To use expression in these attributes, start it with =.

Example:

  align="=iif(rownum>1, 'left', 'right')"

 

Expression has following predefined variables:

<field> - all row fields.

rownum: integer - current row number

context: THtXMLNode - report context

masterdata: THtXMLNode - current master row for detail packet.