An alternative method is to keep the array at 100 or whatever size u need and use a routine to shift the elements 'up' in the list effectively wiping out the oldest member of the array and just adding to the last member the new info:
dim my_data(99)
for a=0 to 99
my_data(a)=a : ' this will set each element to equal its own position
next a
ok that creates the array now to shift the elements you would do something like this:
new_data=500
for a=0 to 98: 'note this is 1 less the total size (which was 99 in the DIM statement)
my_data(a)=my_data(a+1) : 'this copies the next value in the array into the current one
next a
my_data(99)=new_data : ' this places the new info into the last member of the array
and that will shift the contents of the array and then replace the last entry with new info.
thats just one way to do it