Home AMX User Forum NetLinx Studio

programming support

I have a video wall for that i have created 10 buttons on TPD (10 modes like case1, case2........ case10 by using switch case) each one performs particular task,now i want to create 'up/down' buttons ,if i press UP mode will change in ascending order,if i press down mode will change in descending order,please tell how to do the program in NetLinx.

Comments

  • ericmedleyericmedley Posts: 4,177
    You'll need to post some code. There are several ways to do it but will depend upon your code.

    Also, this forum is not a place to come and have others write your programs for you. We love to help but it's more along the idea of advice, not doing the actual work.
  • the8thstthe8thst Posts: 470
    Make the buttons increment/decrement a variable and then run that variable through the same switch..case section.

    It will be cleaner to turn the switch..case into a function so you are not duplicating code and both your up/down and discrete buttons will have access to it.

    Oh.... and what Eric said.
Sign In or Register to comment.