TFlexCelReport.SetValue Method
Sets a variable for the report.
Syntax
Unit: FlexCel.Report
procedure TFlexCelReport.SetValue(const name: string; const value: TReportValue);
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | name | string | Name of the variable to set. Case insensitive. |
const | value | TReportValue | Value of the variable. |
Examples
You can define a variable "CurrentDate" on the following way:
flexCelReport.SetValue('CurrentDate', Now);
Then, if you write <#CurrentDate> on a cell, the date will be shown. Note that the name is case insensitive, so both "CURRENTDATE" and "currentdate" refer to the same variable.