Click to See Complete Forum and Search --> : inet
danielf
Sep 6th, 2000, 11:41 PM
Please, how to make a download without having this msgbox:
"URL is malformed"?
Dim
Sep 7th, 2000, 12:20 AM
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
danielf
Sep 7th, 2000, 06:02 PM
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
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.