Thank you so much Klaus for the fast reply. My old code for storage was:
Dim Out As OutputStream
Out = File.OpenOutput (File.DirRootExternal,"Test1.png",False)
can1.Bitmap.WriteToStream(out, 100, "PNG")
Out.Close
When I put your code in the counter loop :
counter = counter + 1
filename = (counter)
Dim Out As OutputStream
Out = File.OpenOutput( File.DirRootExternal,"Test"&filename&".png",False)
can1.Bitmap.WriteToStream(out, 100, "PNG")
Out.Close
It works beautifully (remembering to Dim the Test etc.) and the data is stored in Test1, Test2, ...sequentially.
Thanks Klaus so much for your time and expertise!
Tom