korsar01
15 years agoOccasional Contributor
Global variables in C# Scripts
Hello. How can I use global variabels in C# Scripts?
For example:
Init()
For example:
function Main()
{
try
{
Init()
Test1()// Enter your code here.
}
catch(exception)
{
Log["Error"]("Exception", exception["description"]);
}
}
function Init()
Init()
{
//init
var iexplore;
var form;
var textbox;
var cell;
var page;
var table;
var table2;
var submitButton;
}
I want that all varaibals coud be seen in all functions.