Skip to main content Skip to complementary content

CheckScriptSyntax method

Overview

Checks the syntax of a script.

Parameters

None

Outputs

The engine returns the list of syntax errors in the script.

If there is no error

The following is returned in the output:

"result": { "qErrorList": []
}

If there are some errors

The following is returned in the output:

Name Description Type
qErrLen Length of the word where the error is located Integer
qTabIx Number of the faulty section Integer
qLineInTab Line number in the section where the error is located Integer
qColInLine Position of the erroneous text from the beginning of the line Integer
qTextPos Position of the erroneous text from the beginning of the script Integer
qSecondaryFailure The default value is false. Boolean

Example:  

"result": { "qErrorList": [ { "qErrLen": 3, "qTabIx": 0, "qLineInTab": 0, "qColInLine": 0, "qTextPos": 0 }, { "qErrLen": 5, "qTabIx": 0, "qLineInTab": 0, "qColInLine": 1, "qTextPos": 4, "qSecondaryFailure": true } ] }
Information noteThe first area is the primary error area, the second area is the secondary error area. The second area is optional and is shown only if qSecondaryFailure is set to true. The second area ends when the next statement in the script begins.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!