FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > IExpressionSupport2 Interface : EvaluateExpression Method |
'Declaration Function EvaluateExpression( _ ByVal row As Integer, _ ByVal column As Integer, _ ByVal expression As Expression _ ) As Object
'Usage Dim instance As IExpressionSupport2 Dim row As Integer Dim column As Integer Dim expression As Expression Dim value As Object value = instance.EvaluateExpression(row, column, expression)
object EvaluateExpression( int row, int column, Expression expression )
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());
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())
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional