[Solved] OPEN SCREEN only works after leave the screen and back again

Hello

I have a problem: the event OPEN SCREEN just works only leave the screen and back again.

Animated GIF with the problem

I will be glad for help.

Thanks

Romero.

hi @romerofreire7z3 :wave:

Did you try using the Painel.Starts event instead of Painel.Opens? This should run each time this screen is displayed.

Thanks.

2 Likes

Hi @domhnallohanlon!

Yes I’d try OPEN, START and both and nothing works.

Thanks.

Now that I look a little closer, I think this might have more to do with the time taken to complete the 3 function you call on startup.

Is there a particular reason for running the ProcLeMensagem function twice?

Also, can you share a screenshot of the FuncDataCorrenteInvertidaYYYYMMDD function too?
Is this function declared on the Painel screen?

2 Likes

Well

I call ProcLeMensagem twice in a desperated shoot.

The function FuncDataCorrenteInvertidaYYYYMMDD is declared and follows the code:

01_Problema_03

Thanks

Thanks.

Thanks!

Is it declared on the same screen that calls it?

1 Like

Yes. it is declared on the same screen that calls it.

What sets the initial value of “contmensagem”?

I see you have logic to increment it, but nothing showing what value it starts with.

1 Like

Hi my friends!

I got the solution. I rewrote the code, tooking off the function and did some changes. And I works.

Thanks @domhnallohanlon and @CBVG for the help.

2 Likes