[Gambas-user] How to download a file?
Willy Raets
willy at ...2734...
Tue Apr 17 20:39:18 CEST 2012
On di, 2012-04-17 at 15:57 +0200, Fabien Bodard wrote:
> dim hGetfileCliet as new httpclient
>
> hGetFileClient.Async = false
>
> hGetFileClient.Url = "http:// ..."
>
> hGetFileClient.Get([""],myfilepath)
>
>
> 2012/4/17 abbat <abbat.81 at ...787...>:
> >
> > Hi Willy, thanks for your patientnt
> >
> > On string:
> >
> > hGetFileClient.Get(User.Home & "/Test/test")
> >
> > I get error message:
> > "Wanted String[] got string instead"
> >
That is probably because you are on Gambas3 and this code I use in one
of my Gambas2 applications.
Looks like a String array is required in Gambas 3.
And Fabian gave an answer on how to use that.
More information about the User
mailing list