Property ScriptRun
ScriptRun
Contains all information required to compile and run the script.
public IScriptRun ScriptRun { get; set; }
Property Value
Examples
Here is how to use a ScriptRun in the C# code:
using System;
using Alternet.Scripter;
using Alternet.Scripter.Debugger;
public partial class Form1 : Form
{
private ScriptRun scriptRun;
private ScriptDebugger debugger;
private void Form1_Load(object sender, EventArgs e)
{
scriptRun = new ScriptRun();
scriptRun.ScriptLanguage = ScriptLanguage.CSharp;
scriptRun.LoadFile("myScript.cs");
debugger = new ScriptDebugger
{
ScriptRun = scriptRun,
};
}
}
Here is how to use a ScriptRun in the Visual Basic code:
Imports System
Imports Alternet.Scripter
Imports Alternet.Scripter.Debugger
Partial Public Class Form1
Inherits Form
Private scriptRun As ScriptRun
Private debugger As ScriptDebugger
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
scriptRun = New ScriptRun()
scriptRun.ScriptLanguage = ScriptLanguage.CSharp
scriptRun.LoadFile("myScript.cs")
debugger = New ScriptDebugger With {
.scriptRun = scriptRun
}
End Sub
End Class