>Hi Yuri,
>
>Thank you for your response.
>
>(Note: I'm using Visual FoxPro 5.0)
>
>I tried the syntax you suggested;
>
>< copy to testfile CSV >
>
>but, I recieved the following error:
>
>"Command contains unrecognized phrase/keyword"
>
>Do you think this is a VFP version conflict or am I missing something?
>
>Thanks,
>Billy
Billy,
VFP5 doesn't support type CSV. Workaround :
copy to myFile.csv type delimited
lcStr=''
for ix=1 to fcount()
lcStr= lcStr+iif(empty(lcStr),'',',')+field(ix)
endfor
handle=fopen('myFile.csv',12)
lnSize = fseek(handle,0,2)
=fseek(handle,0,0)
lcContent=fread(handle,lnSize)
=fseek(handle,0,0)
=fputs(handle,lcStr,len(lcStr))
=fwrite(handle,lcContent,lnSize)
=fclose(handle)
Cetin