BasicNoUIObjSyntaxCheckThis Method |
Checks for syntax errors.
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntaxpublic Error[] SyntaxCheckThis(
string code,
int errorLimit
)
Public Function SyntaxCheckThis (
code As String,
errorLimit As Integer
) As Error()
public:
virtual array<Error^>^ SyntaxCheckThis(
String^ code,
int errorLimit
) sealed
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)
RemarksSyntaxCheckThis 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());Private Sub SyntaxButtonClick ( )
Dim errors = BasicIdeCtl1.SyntaxCheckThis(..., 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