Материал из Module developer
module.GetVariable
Getting the global variable
Синтаксис
module.GetVariable(Path.Name)
| Название | Пример | Описание |
| Path | Tokens | type: string shows a path to the variable and its type:
|
| Name | Update | type: string Variable name |
| На выходе |
| Value | true | type: string, number Variable value |
Пример
// System Tokens var tag1 = module.GetVariable("System.Update"); // Project Tokens var tag2 = module.GetVariable("Global.My Var 1"); // Driver Tokens var tag3 = module.GetVariable("Drivers.AV & Custom Systems (TCP).Online"); var tag4 = module.GetVariable("Drivers.AV & Custom Systems (TCP).Channel 1"); // GUI Tags var tag5 = module.GetVariable("UI.Page 1.Text"); var tag6 = module.GetVariable("UI.Page 1.Item 1.Value");
