Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Jun 2004
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Freefile function err 67 (VB6)

    Calling the Freefile function in VB6 produces error 67 - too many files. Any suggestions. Thanks.

    Dim I as integer
    I = Freefile ***

    ***error isolated at this line

  2. #2
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Freefile function err 67 (VB6)

    Although there is a limit of 511 files which can be opened, you can only interrogate the first 255 with the statement you used.
    If Freefile should return 256 through 511, you must use the form "I = Freefile(1)"

    HTH
    Regards
    Don

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Freefile function err 67 (VB6)

    Make sure that you close files after you are done with them. If you leave files open, you could eventually get this error message.

Posting Permissions

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