Search Results for

    Show / Hide Table of Contents

    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.

    See also

    • TFlexCelReport
    In This Article
    Back to top FlexCel Studio for VCL and FireMonkey v7.8.0
    © 2002 - 2020 tmssoftware.com