Start a new topic

don't change page in the simulator of nextion editor

I'm on page 0 and my text (t0)  is 2. My code is:


if(t0.txt="123")

{

page 1

}else

{

page 0

}


When I change the value of t0 never goes to page 1. 


Input :


t0.txt="123"


Why does not it change?


thanks


sorry, my code is:


if(t0.txt="123")

{

page 1

}else

{

ref t0

//doevents

//ref_star


}




CCL


    - read the Nextion Instruction Set at http://wiki.iteadstudio.com/Nextion_Instruction_Set carefully ...

    - implement your commands correctly ...

    - think twice how and where you implement your workflow logically ...


Doing above, no need to post your errors, your code will just run ...


My problem still exists, I change the value of t0 but I do not change the page

sorry, you can't change t0 with your code, because your code neither compile nor run ...

    - without RUN no DEBUG no CHANGE of t0 ...
    - read your compiler output...
    - the error message about your issue is very clear ...

 

Login or Signup to post a comment