Evaluates the expression and returns the resulting object for the cell at the specified row and column.
Syntax
Parameters
- row
- Row index of the base cell
- column
- Column index of the base cell
- expression
- Expression to be evaluated
Return Value
Object containing the results of the evaluation
Example
This example evaluates the specified expression.
C# | Copy Code |
---|
FarPoint.Web.Spread.Model.IExpressionSupport2 es;
es = FpSpread1.ActiveSheetView.DataModel;
FarPoint.CalcEngine.Expression ex;
object o;
FpSpread1.ActiveSheetView.Cells[0, 0].Value = 10;
FpSpread1.ActiveSheetView.Cells[1, 0].Value = 10;
FpSpread1.ActiveSheetView.Cells[2, 0].Formula = "A1 + A2";
ex = es.ParseFormula(2, 0, "A1+A2");
o = es.EvaluateExpression(2, 0, ex);
Response.Write(o.ToString()); |
Visual Basic | Copy Code |
---|
Dim es As FarPoint.Web.Spread.Model.IExpressionSupport2
es = FpSpread1.ActiveSheetView.DataModel
Dim ex As FarPoint.CalcEngine.Expression
Dim o As Object
FpSpread1.ActiveSheetView.Cells(0, 0).Value = 10
FpSpread1.ActiveSheetView.Cells(1, 0).Value = 10
FpSpread1.ActiveSheetView.Cells(2, 0).Formula = "A1 + A2"
ex = es.ParseFormula(2, 0, "A1+A2")
o = es.EvaluateExpression(2, 0, ex)
Response.Write(o.ToString()) |
Requirements
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
See Also