• HOME
  • PRODUCTS
  • DEMOS
  • BUY
  • BLOG
  • FORUM
  • DOCUMENTATION
  • ABOUT
  • FREE EVALUATION
Search Results for

    Show / Hide Table of Contents

    Executed Property

    Executed

    Gets boolean value indicating that script has been compiled and ready to be executed.

    Declaration
    [Browsable(false)]
    public virtual bool Executed { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IScriptRunBase.Executed
    Remarks

    You can check whether ScriptRun has been already executed after the last script compilation.

    Examples

    Here is how to use a Executed in the C# code:

    using System.Linq;
    using System.Windows.Forms;
    
    using Alternet.Scripter.TypeScript;
    
    public partial class Form1 : Form
    {
        private ScriptRun scriptRun;
        private void Form1_Load(object sender, EventArgs e)
        {
            scriptRun = new ScriptRun();
        }
    
        private void Button_Click(object sender, EventArgs e)
        {
            if (scriptRun.Executed)
            {
                MessageBox.Show("Script executed");
            }
        }
    }
    

    Here is how to use a Executed in the Visual Basic code:

    Imports System.Linq
    Imports System.Windows.Forms
    Imports Alternet.Scripter.TypeScript
    
    Partial Public Class Form1
        Inherits Form
    
        Private scriptRun As ScriptRun
    
        Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
            scriptRun = New ScriptRun()
        End Sub
    
        Private Sub Button_Click(ByVal sender As Object, ByVal e As EventArgs)
            If scriptRun.Executed Then
                MessageBox.Show("Script executed")
            End If
        End Sub
    End Class
    
    In This Article
    Back to top Copyright AlterNET Software Download PDF