Results 1 to 12 of 12

Thread: [RESOLVED] Save in a loop

Hybrid View

  1. #1

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Posts
    376

    Re: Save in a loop

    Ok, I guess now my problem is actually writing it to my file. I've created a file geoff.gif on my desktop and use this code:
    VB Code:
    1. Private Sub Form_Load()
    2. Inet1_StateChanged (State)
    3. End Sub
    4.  
    5. Private Sub Inet1_StateChanged(ByVal State As Integer)
    6. Dim bytes() As Byte
    7.  
    8. bytes() = Inet1.OpenURL("http://www.thefishfinder.com/images/worlds1.gif", icByteArray)
    9.                 fnum = FreeFile
    10.             Open "geoff.gif" For Binary Access Write As #fnum
    11.                 Put #fnum, , bytes()
    12.             Close #fnum
    13. End Sub

    How do I get it to write to geoff.gif? I've never done anything like this before so I may be going about it wrong.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Posts
    376

    Re: Save in a loop

    O nevermid it's working, I was looking in the wrong spot for the file. Thanks everyone.

  4. #4

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