06-19-2024 06:34 AM
i am inserting data into an array at a specific index for each specific test.
I am having a tough time achieving this.
what am i doing wrong?
can anyone help me fix my code?
thanks
06-19-2024 06:52 AM
Do you mean that you want to replace an element of the array? Or actually insert the value thereby increasing the size of the array?
So:
[0,0,0,0,0] -> [0,0,5,0,0]
Or
[0,0,0,0,0] -> [0,0,5,0,0,0]
I imagine the first case. You should use the Replace Array Subset function.
06-19-2024 06:55 AM
1. Your loops run forever. That is simply not allowed in a Windows system.
2. From what I'm seeing, you just need a simple While loop with an Event Structure inside of it. With the Event Structure, you can handle your button presses. This will greatly allow you to simplify your code.