PDA

Click to See Complete Forum and Search --> : Incrementing file names on a save? Help Me!!:-)


Dec 16th, 1999, 10:51 PM
I am creating a series of individual txt documents in a vb program. As I create each page I want to save it with a "incrementing" file name. Example, "page#1" "page#2" and so on. How do I get the file name to automatically incremenat? Thanks in advance.

smalig
Dec 17th, 1999, 11:06 AM
Try it:

Dim ok as Boolean
Dim FileName$, x%

Do While ok
FileName = "page" & x & ".txt"
...
x = x + 1
If IwantFinish Then ok = False
Loop

------------------
smalig
smalig@hotmail.com
http://vbcode.webhostme.com/