-
Hi,
I'm using the Kodak Image Control in VB 5, what I want to do is generate a common filename such as C:\scan\img.xxx" and then increment the file number eg c:\scan\img001.xxx,C:\scan\img002.xxx etc. without the user doing anything. The help file says something about file templates and using one, bt I don't exactly know what they are. What are they, how do I set one up and use it?? Any help would be much appreciated, thanks
Oasisfan
[email protected]
-
You can call a routine like the following.
Code:
Public Function GeneratePictureNumber() As String
Const PATH_START = "c:\scan\img"
Const PATH_END = ".xxx"
Static intPic As Integer
intPic = intPic + 1
GeneratePictureNumber = PATH_START & Format(intPic, "000") & PATH_END
End Function
Usage:
MsgBox GeneratePictureNumber
-