'Declaration
Public Overloads Function Evaluate( _
ByVal As System.String _
) As System.Object
public System.object Evaluate(
System.string
)
Parameters
- expression
- A string with a VBScript expression to be evaluated.
Return Value
The value of the expression.
Expressions may contain simple VBScript expressions such as:
Expressions may also contain references to the Report object and all its sub-objects. For example:
Finally, data fields, Field, and Section objects may be referenced directly by name.
Console.WriteLine(_c1r.Evaluate("2+2"));
4
Console.WriteLine(_c1r.Evaluate(" \"A\" & \"B\" ");
AB
Console.WriteLine(_c1r.Evaluate("Report.DataSource.RecordSource"));
SELECT * FROM Employees
Console.WriteLine(_c1r.Evaluate("Report.DataSource.Recordset.Fields.Count"));
7
Console.WriteLine(_c1r.Evaluate("Report.Fields(0).Name"));
FirstNameField
Console.WriteLine(_c1r.Evaluate("FirstNameField.Value"));
Andrew
Console.WriteLine(_c1r.Evaluate("CategoryName"));
Beverages