Click or drag to resize

BasicNoUIObjSyntaxCheckFile Method

Checks for syntax errors.

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

Parameters

fileName  String
Check syntax of this file. If this is a null string, use the value of the FileName property as the file name.
errorLimit  Int32
Maximum number of errors allowed (>= 1).

Return Value

Error
An array of Error objects.

Implements

IBasicNoUISyntaxCheckFile(String, Int32)
Remarks
SyntaxCheckFile parses the code to check for possible errors. This will include any #uses code as well.
Example
Syntax check button:
var errors = basicIdeCtl1.SyntaxCheckFile(..., 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