8/30/2018 8:12 PM | |
Joined: 9/3/2008 Last visit: 6/16/2024 Posts: 925 Rating: (159) |
Hi KBK_1983 I think what happes is you need to make your FOR loop to be from 1 to #Lenght instead of from 0. You are moving the value from table[#tmp2-1] to table[tmp2] which means when you count #tmp2 down to 0, then you try to move from table[-1] to table[0] which is outside the area. Try to see if this is the reason. |
Last edited by: Michael K at: 8/30/2018 8:13:22 PMLast edited by: Michael K at: 8/30/2018 8:14:32 PMMichael |
|
This contribution was helpful to2 thankful Users |
8/30/2018 8:18 PM | |
Joined: 1/17/2018 Last visit: 5/3/2024 Posts: 12 Rating: (0) |
Mikael thank you very much, |
8/31/2018 7:56 AM | |
Posts: 2826 Rating: (685) |
FYI Counting backwards is possible for the FOR-loop.
------ Consider looking into what "ring buffer" means. |
Last edited by: #dP at: 8/31/2018 8:02:23 AM |
|
Follow us on