Engine.CheckExprSyntax ( expressionStr, errorDescription, startErrPos, endErrPos)
Returns True if the syntax is correct. Returns False if the expression contains a syntax error. If it returns False, check the errorDescription, startErrPos, and endErrPos parameters for more information.
Checks the syntax of the expression parameter and returns error information.
Calling this method is equivalent to calling the CheckExpression method and passing a NULL reference to the evaluationContext parameter and passing EvalOption_NoOptions to the evaluationOptions parameter.
expressionStr As String
[In] Specifies the expression for which to check the syntax.
errorDescription As String
[Out] When a syntax error exists, this parameter returns an error message describing the type of error.
startErrPos As long
[Out] When a syntax error exists, this parameter returns the index of the location in the string where the error begins.
endErrPos As long
[Out] When a syntax error exists, this parameter returns the index of the location in the string of the first character beyond the syntax error.