FlexReport for WinForms | ComponentOne
C1.Win.FlexReport.4.5.2 Assembly / C1.Win.FlexReport Namespace / C1FlexReport Class / Execute Method / Execute(String) Method
A string with VBScript instructions to be executed.

In This Topic
    Execute(String) Method
    In This Topic
    Executes a VBScript statement in the current report context.
    Syntax
    'Declaration
     
    Public Overloads Sub Execute( _
       ByVal statement As String _
    ) 
    public void Execute( 
       string statement
    )

    Parameters

    statement
    A string with VBScript instructions to be executed.
    Remarks

    This method is similar to the Evaluate(String) method, except it does not return a value.

    If the expression string contains invalid syntax or causes an evaluation error, the control raises the ReportError event. In this case, the Handled parameter of the event is set to true, so the exception is ignored by default.

    See Also