Hi,
I am trying to defined commands whose names is derived from a global variable.
e.g.
Instead of defining the following 3 commands, so that when I say:
Set com 1 [tower1;tower2;tower2....towerX]
Set com 2 [tower1;tower2;tower2....towerX]
Set tacan [tower1;tower2;tower2....towerX]
I define, when I load the profile a variable:
Set text [airpotList] to 'tower1;tower2;tower3...towerX'
Then I defines my command so that when I say:
Set com 1 [{TXT:airpotList}]
Set com 2 [{TXT:airpotList}]
Set tacan [{TXT:airpotList}]
This allows me the flexibility to make a single modifications which will be reflected to all my commands.
I tested it and it is working.
I want to know if this is a 'legit' way to define a command or perhaps it can lead to stability or other issues.