Engine.CheckExprSyntax
- Aktualisiert2025-07-21
- 1 Minute(n) Lesezeit
Engine.CheckExprSyntax
Syntax
Engine.CheckExprSyntax( expressionStr, errorDescription, startErrPos, endErrPos)
Return Value
Returns True if the syntax is correct. Returns False if the expression contains a syntax error. If this method returns False , check the errorDescription , startErrPos , and endErrPos parameters for more information.
Purpose
Checks the syntax of the expression parameter and returns error information.
Remarks
Calling this method is equivalent to calling the Engine.CheckExpression method and passing a NULL reference to the evaluationContext parameter and passing EvalOption_NoOptions to the evaluationOptions parameter.
Parameters
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.