Problems with function
Posted: Thu Mar 17, 2016 4:43 am
Hi,
I would like to create a function but it doesn´t work.
To explain what I need, In short terms I would like to close a screen "tarar" when the value of tho tags "contador_cazoletas & num_cazoletas" will be the same.
I have void tarar_value on because this tag will be on during the process.
void tarar_ValueOn(System.Object sender, System.EventArgs e)
{
if (Globals.Tags.contador_cazoletas.Value==Globals.Tags.num_cazoletas.Value)
{
Globals.tarar.Close();
}
}
It doesn´t work and I don´t know why.
Any help will be appreciate.
Regards
Antonio
I would like to create a function but it doesn´t work.
To explain what I need, In short terms I would like to close a screen "tarar" when the value of tho tags "contador_cazoletas & num_cazoletas" will be the same.
I have void tarar_value on because this tag will be on during the process.
void tarar_ValueOn(System.Object sender, System.EventArgs e)
{
if (Globals.Tags.contador_cazoletas.Value==Globals.Tags.num_cazoletas.Value)
{
Globals.tarar.Close();
}
}
It doesn´t work and I don´t know why.
Any help will be appreciate.
Regards
Antonio