Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get a (gif-)picture in a stringvar
Message
From
11/05/2010 13:30:38
 
 
To
11/05/2010 13:20:07
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01464184
Message ID:
01464194
Views:
34
You're welcome! The code is not mine, but I have used it without problems for years. There is also a much simpler version, but it doesn't provie so much error checking.
LPARAMETERS lcRemoteFile,lcLocalFile
DECLARE INTEGER URLDownloadToFile IN urlmon.dll; 
    INTEGER pCaller, STRING szURL, STRING szFileName,; 
    INTEGER dwReserved, INTEGER lpfnCB 

*LOCAL lcRemoteFile, lcLocalFile 
*lcRemoteFile = "http://www.news2news.com/vfp/downloads/w32data.zip" 
*lcLocalFile  = "c:\temp\w32data.zip" 

= URLDownloadToFile (0, lcRemoteFile, lcLocalFile, 0, 0) 
>This is fantastic, Tore.
>
>Thank you very much.
>
>Lennert
Previous
Reply
Map
View

Click here to load this message in the networking platform