03-03-2023 12:13 PM
So I would like to insert numbers (inputs) into the appended array. Let's say I am increment my inputs by 1 starting from 0, I would expect to see in my array [0,1,2,3,4,5,...] as
shown below. However, it's not the case. What am I doing wrong here? How can I fix this?
P.S: I don't want to use event structure
03-03-2023 12:43 PM
The loop runs as fast as it can. So it starts flooding the array with the value of the control, 0...
Put a wait in the loop.
Or use an event structure in the loop, so you only add a value to the array if the control value changes.
03-03-2023 01:46 PM - edited 03-03-2023 01:46 PM
03-03-2023 01:54 PM
@GRCK5000 wrote:
P.S: I don't want to use event structure
You will need to add a boolean control (ie button) with a case statement to meet your requirement. Something like this...