I tried something In VB, something easy when you write it in a PLC.
A running light with 8 lights.
But, booleans have to be shape backcolors or checkboxes.
I tried to change the value of a checkbox with a button, but didn't work... Changing the backcolor of a shape was no problem.
So what I tried is, a start and stop button... and then 8 shape's. First shape becomes green, then second one and first one becomes white again, the 3, etc...
I think I need to write it with For Next, that's mostly used for loops... so...
But the interval, u know, every time there is a pulse, I must change the current state and the next one, this has to work automatically...
Anyone know how to code a running light in VB ?
A running light with 8 lights.
But, booleans have to be shape backcolors or checkboxes.
I tried to change the value of a checkbox with a button, but didn't work... Changing the backcolor of a shape was no problem.
So what I tried is, a start and stop button... and then 8 shape's. First shape becomes green, then second one and first one becomes white again, the 3, etc...
I think I need to write it with For Next, that's mostly used for loops... so...
But the interval, u know, every time there is a pulse, I must change the current state and the next one, this has to work automatically...
Anyone know how to code a running light in VB ?