Click or drag to resize

BasicNoUIObjSyntaxCheckThis Method

Checks for syntax errors.

Namespace: WinWrap.Basic.Server
Assembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntax
public Error[] SyntaxCheckThis(
	string code,
	int errorLimit
)

Parameters

code  String
Check syntax of this code.
errorLimit  Int32
Maximum number of errors allowed (>= 1).

Return Value

Error
An array of Error objects.

Implements

IBasicNoUISyntaxCheckThis(String, Int32)
Remarks
SyntaxCheckThis parses the code to check for possible errors. This will include any #uses code as well.
Example
Syntax check button:
var errors = basicIdeCtl1.SyntaxCheckThis(..., 100));
if (errors.Length == 0)
    MessageBox.Show("Code does not any have syntax errors.");
else
    foreach (var error in errors)
            Debug.Print(error.ToString());
See Also