Results 1 to 3 of 3

Thread: inet

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    2

    Question

    Please, how to make a download without having this msgbox:
    "URL is malformed"?

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Would you mind showing the code that you are currently using to download the file...it seems you have misstyped the url or you placed it improperly in the code. I can't really help further untill i see the source that you are using.

    D!m
    Dim

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    2
    The strings and the variable's names are in portuguese, download is a button, dia is a commondialog and inet1 is an inet.


    ___________________________________________________________
    Private Sub download_Click()
    Dim endereco, arquivo
    endereco = InputBox("Escreva o URL", "Download Rápido")
    dia.DialogTitle = "Salvar " + endereco + " em:"
    dia.ShowSave
    arquivo = dia.FileName
    Dim b() As Byte
    Dim intCount As Integer
    Dim strData As String
    Inet1.Cancel
    b() = Inet1.OpenURL(endereco, icByteArray)
    Open arquivo For Binary Access Write As #1
    Put #1, , b()
    Close #1
    End Sub
    ____________________________________________________________


    Please help me

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