Problems with function

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
aperez
Posts: 8
Joined: Fri Feb 26, 2016 9:42 am

Problems with function

Post 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

User avatar
Jae V
Posts: 118
Joined: Wed Jan 15, 2020 11:00 am

Re: Problems with function

Post 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.
Best regards,
Jason
(801) 708-6690
Technical Support
Contact Us



Beijer Electronics AB
http://www.beijerelectronics.us

User avatar
Russ C.
Posts: 213
Joined: Thu Nov 16, 2017 3:32 pm
Contact:

Re: Problems with function

Post 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?
Best regards,

Russ
(801) 708-6690
Technical Support
Contact Us

Beijer Electronics AB
http://www.beijerelectronics.us

Post Reply