Örnek Script : Message box görüntülenmesi:
'Bu script bir messagebox görüntüler.
Imports System 'Gerekli Classlar scripte dahil ediliyor.
Imports System.IO
Imports System.Windows.Forms
Imports Microsoft.VisualBasic
Imports System.Data.SqlClient
Namespace WinTr
Public Class MainClass
Public Sub Load
'------- Script Start Line -----
Msgbox("Hello") 'Messagebox görüntüleniyor.
'------- Script End Line -------
End Sub
End Class
End Namespace
C# dilinde script içersinden message box görüntüleyen Script:
using System;
using System.IO;
using System.Windows.Forms;
using Microsoft.CSharp;
namespace WinTr
{
class MainClass
{
public void Load()
{
//------- Script Start Line -----
MessageBox.Show("Hello");
//------- Script End Line -------
}
}
}
Script ile oluşturulan Mesaj kutusu
Script calıştığında aşağıdaki mesaj kutusu görüntülenecektir.