Results 1 to 2 of 2

Thread: Easy!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Posts
    225

    Talking

    I should know this by now but I don't... =) What does FreeFile do?

    I think I know but I'm not sure... Say if you have written Open This For Input As #1, and #2, and #3, the files are still open (aka it hasn't gone through Close #whatever-the-number-is yet), and you open another file with FreeFile, it will open the next free number, which in this case would be #4? Is this right? Or am I asleep?

    Thanks... =)

    -Git

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    You are right. FreeFile gives you the free file number to open a file.

    Just note thet you shouldn't use it like this
    Code:
    Open This For Input As #1
    but like this
    Code:
    Dim filenumber
    filenumber = FreeFile
    Open This For Input As #filenumber
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

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