Page 1 of 1

Problems with function

Posted: Thu Mar 17, 2016 4:43 am
by aperez
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

Re: Problems with function

Posted: Tue Jan 28, 2020 6:06 pm
by Jae V
Hello,
We understand that this is a very old post. As for closing a screen, iX tends to work better by just opening a new screen instead of closing one. This can be done with the following script:
Globals.Screen2.Show;

If there is anyone who is still experiencing this or similar issues and require assistance, please visit us at https://www.beijerelectronics.us/en-US/ ... ___support or give us call at 801.708.6690. Thank you.

Re: Problems with function

Posted: Tue Aug 11, 2020 10:56 am
by Russ C.
From Deannad
Jason,

Won't this cause memory leaks? We have an app that has some "wizard-ish" sequences and we are seeing it become sluggish over time. Guessing that is the result of not closing the prior screens, but we are unable to make the code work when we try to close the prior screen when advancing.

Any other ideas for closing screens?