http://www.picbasic.co.uk/forum/showthread.php?t=1746
You can always "Sum on the run"... for example...
Sample=0
For CounterA=1 to 128
Gosub GetNewSample
Sample=Sample+NewSample
Sample=Sample/2
Next CounterA
Not the best solution but it won't spill out of any variables.
Bookmarks