>Dear Tore,
>
>I found that how it works in the first part
>
>
>SET PROCEDURE TO getdatafromurl.prg additive
>n=getdatafromurl('http://hk.finance.yahoo.com/d/quotes.csv?s=0179.HK&f=sl1d1t1c1ohgv&e=.csv')
>
>
>It works perfectly! But how about the second part?
If you save the function as a separate .prg, you don't need the Set procedure .. line.