version 2.1 (02.10.1042) issue
Posted: Wed Mar 26, 2014 8:05 am
Hello,
I recently converted my project iX version 2.0 SP1 to version 2.1 (02.10.1042) but unfortunately I noticed a problem with the event "_InputValueChanged" of fields "AnalogNumeric", when I enter a number in a field "AnalogNumeric" to which I assigned a variable eg. Tag1, if I use the variable Tag1 in the event "_InputValueChanged" of the same field with the value of the Tag1, the tag value maintain the old value (the one before the entry of the new value) , I try to explain better with an example:
if I assigne in the AnalogNumeric1 the Tag1 and then use this script:
void AnalogNumeric1_InputValueChanged (System.Object sender, and Neo.ApplicationFramework.Interfaces.Events.ValueChangedEventArgs )
{
Globals.Tags.Tag2.Value = Globals.Tags.Tag1.Value ;
}
when at runtime I change the value field AnalogNumeric1 for example by entering the number 5, in Tag2 I found 0 , then if I enter in the field AnalogNumeric1 the number 8, in Tag2 I will find the value 5 and so I always find the previous one.
In version 2.0 SP1, the value was updated immediately.
The problem is that I have used this event many times in my project , can you help me?
Thank you very much!
I recently converted my project iX version 2.0 SP1 to version 2.1 (02.10.1042) but unfortunately I noticed a problem with the event "_InputValueChanged" of fields "AnalogNumeric", when I enter a number in a field "AnalogNumeric" to which I assigned a variable eg. Tag1, if I use the variable Tag1 in the event "_InputValueChanged" of the same field with the value of the Tag1, the tag value maintain the old value (the one before the entry of the new value) , I try to explain better with an example:
if I assigne in the AnalogNumeric1 the Tag1 and then use this script:
void AnalogNumeric1_InputValueChanged (System.Object sender, and Neo.ApplicationFramework.Interfaces.Events.ValueChangedEventArgs )
{
Globals.Tags.Tag2.Value = Globals.Tags.Tag1.Value ;
}
when at runtime I change the value field AnalogNumeric1 for example by entering the number 5, in Tag2 I found 0 , then if I enter in the field AnalogNumeric1 the number 8, in Tag2 I will find the value 5 and so I always find the previous one.
In version 2.0 SP1, the value was updated immediately.
The problem is that I have used this event many times in my project , can you help me?
Thank you very much!