ComponentOne Reports for WPF
C1.C1Report Namespace / C1Report Class / ParseStatement Method / ParseStatement(String,String,Boolean) Method
A string with a VBScript statement to be parsed.
The name of the statement. A statement can contain named functions and procedures, in which case they are identified by the statement name and function or procedure name pair.
Indicates whether it is the C1Report.GlobalScripts that is being parsed.

In This Topic
    ParseStatement(String,String,Boolean) Method
    In This Topic
    Parses a named VBScript statement in the current report context.
    Syntax
    'Declaration
     
    Public Overloads Function ParseStatement( _
       ByVal statement As String, _
       ByVal name As String, _
       ByVal isGlobal As Boolean _
    ) As Exception
    public Exception ParseStatement( 
       string statement,
       string name,
       bool isGlobal
    )

    Parameters

    statement
    A string with a VBScript statement to be parsed.
    name
    The name of the statement. A statement can contain named functions and procedures, in which case they are identified by the statement name and function or procedure name pair.
    isGlobal
    Indicates whether it is the C1Report.GlobalScripts that is being parsed.

    Return Value

    An System.Exception if the statement is invalid, or null if no errors were detected.
    Remarks
    This method is useful for providing VBScript syntax-checking in designer applications.
    See Also