CheckScriptSyntax method
Checks the syntax of a script.
Example
"result": { "qErrors": [ { "qErrLen": 3, "qTabIx": 0, "qLineInTab": 0, "qColInLine": 0, "qTextPos": 0 }, { "qErrLen": 5, "qTabIx": 0, "qLineInTab": 0, "qColInLine": 1, "qTextPos": 4, "qSecondaryFailure": true } ] }
Information note
The list of syntax errors in the script.
If there are no errors, the engine returns:
If there are errors, the engine returns the following properties in the response:
The 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.
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 |
Returns
Name | Description | Type |
---|---|---|
qErrors |
[] |
Array of ScriptSyntaxError |
Access Control
reload
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!