function main()
local cTmp := "tmp123"
makedir(".\data")
set default to ".\data"
dbcreate("ta_poll",{ {"id", "c", 3, 0} } )
? file("ta_poll.dbf")
use ta_poll
copy to (cTmp)
? file(cTmp+".dbf") // got .f. when was expecting .t.
return nil
TIA
TIA.
This line:
> set default to ".\data"
should be either:
> set default to .\data
or:
> set default to (".\data")
regards,
budyanto
Now the console program produce the expected result. But my similar test
program that links in Fivewin still doesn't. I'll try to see whether
Antonio can help me with this.
Thanks again.
Problem with paths in COPY TO seems to be for a long time in xHarbour
(from the beginning?)
Look at this thread: http://groups.google.com/group/comp.lang.xharbour/browse_frm/thread/35f0d6d8fc24204d
Regards
Grzegorz
Thanks for pointing that out Grzegorz. I've never notice that as I
rarely use COPY FILE. To me, what's odd is when I test with an xHarbour
console program, it seems to respect SET DEFAULT.
Only when I linked in Fivewin does this problem appears. Yet, others
using Fivewin never mention encountering such problem so I couldn't
actually pinpoint where the error lies.
As a temporary workaround I try using the binaries from xHarbour.org and
that makes my problem goes away. The link I used was
http://downloads.sourceforge.net/xharbour/xharbour-1.20.01.bin.w32.bcc32.5.82.zip