One way to do it would be to add a shift register to your loop and extend it on the left-hand side to have 10 elements. This way, the last 10 elements will always be present. This takes up quite a lot of space however.
Another option is using a cluster to hold the data as this is then limited in size. You'll need to uncluster and re-cluster to maintain order, but you'll definitely be limited to your 10 elements this way.
Yet another possibility is to simply check the size of your array after appending and snip the array size back to 10 if it grows larger than 10. From a memory-management point of view this is quite crude.
My final offering is using apre-initialised 10-unit array, and each time before using "Replace aray element" to the last posision
(index 9) rotate the array by 1 (found under the Array tools).
Hope this helps
Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)