Start a new topic

For Statement Loop

Hi, i would like to ask more informations about "For " statement.
For example, my code is:

for int(i=0;i<10;i++)

{

  vis ImageX,1

  vis ImageY,1

  delay(500)

  vis ImageX,0

  vis ImageY,0

  delay(500)

}

"

and i get these errors: 
" Error: Invalid command:for int(i=0;i<10;i++)( Double click to jump to code)

Error: SYNTAX ERROR: Extra "{":{( Double click to jump to code) "
What is my mistake?
From this example, i want to "Loop" images, when the button pressed, in one "For Statement", images will be show and hide automatically


1 Comment

http://wiki.iteadstudio.com/Nextion_Instruction_Set


    - read carefully, how to build the "for" Construct ...

    - read carefully, how to build and use "variables"


https://www.itead.cc/wiki/NX4832K035#Download


    - download the working demo of the factory default and study its code




1 person likes this
Login or Signup to post a comment