BasicNoUIObjSyntaxCheckFile Method |
Checks for syntax errors.
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntaxpublic Error[] SyntaxCheckFile(
string fileName,
int errorLimit
)
Public Function SyntaxCheckFile (
fileName As String,
errorLimit As Integer
) As Error()
public:
virtual array<Error^>^ SyntaxCheckFile(
String^ fileName,
int errorLimit
) sealed
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)
RemarksSyntaxCheckFile 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());Private Sub SyntaxButtonClick ( )
Dim errors = BasicIdeCtl1.SyntaxCheckFile(..., 100)
If errors.Length = 0 Then
MessageBox.Show("Code does not any have syntax errors.")
Else
For Each error In errors
Debug.Print(error.ToString())
Next
End If
End SubNo code example is currently available or this language may not be supported.
See Also