Results 1 to 3 of 3

Thread: Templates??

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Posts
    4

    Unhappy

    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]

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Posts
    4

    Smile

    Thanks very much!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width