Formulas

Formulas specifies a new string for an existing formula.

Syntax

[form.]Report.Formulas(ArrayIndex)[= "FormulaName= FormulaText"]

Enter the formula name and the string that you want to replace the existing string for each formula that you want to change in your report.

For example, to change a formula @COMMISSION to {file.SALES}*.1, and a second formula @TOTAL to {file.SALES} + {file.COMMISSION}, enter the following:

CrystalReport1.Formulas(0) = "COMMISSION= {file.SALES} *.1"
CrystalReport1.Formulas(1) = "TOTAL= {file.SALES} + {file.COMMISSION}"
Remarks

Note:    

Data Type

Array of strings

Availability

Runtime

Related Report Engine Functions

PESetFormula



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com