07-19-2005 03:14 AM
07-19-2005 03:23 AM
07-19-2005 03:37 AM
Your problem is that the wire always holds the original array you wired into the loop, so only what happens in the last iteration actually matters. You should change the tunnel into a shift register, which will cause the new array to be carried into the next iteration. The problem is also that now i isn't the right number, because once you erase an element, all the following elements have their index decrease by 1, so you need another shift register to know which element you should actually delete now.
Another option you have is using Insert Into Array to build a new array, instead of deleting elements from the old one. This will also require a shift register to hold the array.
07-19-2005 03:39 AM
07-19-2005 03:39 AM
Hi,
You need to replace the tunnels where the array enters in the loop with shift registers.
Your problem is because you are deleteing the elements allways from the initial array and then you are not assigning that new array to the original one.
So in each iteration you have allways the original array.
Right click the tunnels and choose "replace with shift register" and then choose the right one too. This way in the next iteration you'll have the atltered array from the previous one.
Hope this helps,
Paulo
07-19-2005 04:09 AM
Hi guys! Thank you for your fast answers!
THANKS!
Best regards,
Peter
Dankeschön an becktho, du hast mir wirklich weitergeholfen!
07-19-2005 04:11 AM
Hi,
Glad that it's solved...
But please next time don't post bmp's.
Use a compressed format.
Paulo
07-19-2005 04:13 AM
Noch ein kleiner Hinweis, da du offenbar neu in der LV-Forum-Familie bist - versuche doch in Zukunft grosse Anhänge zu vermeiden (mehrere Dateien gezippt, Bilder als .png oder .jpg, usw.)