- Code: Select all
var testVarSet = Session.GetVariableSetByName("Test");
string newVarName = "Test_Blah";
var newVar = Session.CreateGlobalVariable(testVarSet, newVarName, VariableType.String);
I've tried things like newVar = "Foo" and newVar.SetText("Foo"), but they don't work, and calling newVar[ObjectPropertyNames.DefaultValue] = "Foo" crashes Articy.