Use of Instances
Posted: Thu May 09, 2013 8:52 am
I have a scenario where I have a screen with multiple aliases and instances that are directly related to analog numeric text boxes.
(Scenario: Instances - w1, w2, w3
Aliases - a1, a2, a3
a1 a2 a3
w1 tag1_1 tag2_1 tag3_1
w1 tag1_2 tag2_2 tag3_2
w1 tag1_3 tag2_3 tag3_3)
I have the screen dynamically select an instance based on an internal tag which increments or decrements based on the user selected well and thus the tag in the alias referenced should change but unfortunately it is not. Any Ideas?
Using the following for the screen change
switch(Globals.Tags.SelectedInstance.Value.Int)
{
case 0:
Globals.Screen.W1.Show();
break;
case 1:
Globals.Screen.W2.Show();
break;
case 2:
Globals.Screen.W3.Show();
break;
}
(Scenario: Instances - w1, w2, w3
Aliases - a1, a2, a3
a1 a2 a3
w1 tag1_1 tag2_1 tag3_1
w1 tag1_2 tag2_2 tag3_2
w1 tag1_3 tag2_3 tag3_3)
I have the screen dynamically select an instance based on an internal tag which increments or decrements based on the user selected well and thus the tag in the alias referenced should change but unfortunately it is not. Any Ideas?
Using the following for the screen change
switch(Globals.Tags.SelectedInstance.Value.Int)
{
case 0:
Globals.Screen.W1.Show();
break;
case 1:
Globals.Screen.W2.Show();
break;
case 2:
Globals.Screen.W3.Show();
break;
}