GetGlobalVariablesList ()
method
Returns all global variables as list
Syntax
public static List<GlobalVariable> GetGlobalVariablesList ()
Return
List
Collection of global variables
Example
using System;
using System.Text;
using PTLRuntime.NETScript;
namespace GlobalVariablesManager
{
public class GlobalVariablesManager : NETIndicator
{
List <GlobalVariable>global_List=new List<GlobalVariable>();
public override void Init()
{
if(GlobalVariablesManager.Count()>0)
global_List=GlobalVariablesManager.GetGlobalVariablesList();
foreach (var el in global_List)
{
Print(el.Name);
}
}
}
}
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.