Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing a Website in vfp8
Message
From
18/03/2004 10:37:09
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00887217
Message ID:
00887514
Views:
15
Hi Cyrus.

>The Question is with vfp8, what is the simplest way to access a URL ? (whether it is to launch the Internet Explorer and go to a website, or to simply download a file).

To add to Marcia's and Greg's replies, if you just want to download a file without viewing it, you can use the following:
declare long URLDownloadToFile in URLMON.DLL ;
  long, string, string, long, long
lcURL  = 'http://www.whatever.com/somefile.html'
lcFile = 'c:\somefolder\somefile.html'
lnResult = URLDownloadToFile(0, lcURL, lcFile, 0, 0)
if lnResult <> 0
  messagebox('Failed to download ' + lcURL)
endif lnResult <> 0
Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform