Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting *.csv from Yahoo!Finance
Message
From
21/08/2006 03:51:41
 
 
To
21/08/2006 03:34:57
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01147188
Message ID:
01147202
Views:
19
This message has been marked as the solution to the initial question of the thread.
The two functions are used for different purposes. Getdatafromurl is used for storing the remote contents into a memory variable, Getfilefromurl is used to gather a remote file and save it as a local file. I suppose you only need the first function, but I presented both because they are closely related.
*To create memory variable
lcURL='http://hk.finance.yahoo.com/d/quotes.csv?s=0179.HK&f=sl1d1t1c1ohgv&e=.csv'
lcText=Getdatafromurl(lcUrl)
*To save a file
lcUrl='lcURL='http://hk.finance.yahoo.com/download/hkdollar.csv' 
lcSuccess=getfilefromurl(lcUrl,'C:\mylocalfile.csv')
>Dear Tore,
>
>I don't know what is the difference between 2 programs... second part seems to be used to save the remote file... but how can they related to each other?
>
>I try to issue command like this
>
>
>DO getdatafromurl WITH 'http://hk.finance.yahoo.com/d/quotes.csv?s=0179.HK&f=sl1d1t1c1ohgv&e=.csv'
>
>
>But there is nothing happened, except there is "blinking" the screen, it is downloaded something, but not into any file I can locate!
Previous
Reply
Map
View

Click here to load this message in the networking platform