cherokee
1st December 2009, 21:03
Hello everyone,

Every time I want to assign a backslash on a var, when debugging what is in the var is a double backslash?? (i.e. I assign "c:\temp\myfile.txt" to var x, when check the value in x is "c:\\temp\\myfile.txt") my server2client() doesn't transfer.

I also tried "c:/temp/myfile.txt" and doesn't work either.

Any idea?

Thanks in advance,

pprabhulkar
2nd December 2009, 09:10
Hi,

U r right while debugging the path looks in Double backslash "\\" .No problem in that. There may be chance that file doesn't exist or some error in transferring the file.For confirmation u can put the following check to check file exist or not.(just a example code)
field.frm.path:
check.input:
path = "c:\temp\myfile.txt"
fp = seq.fstat.local(path, err)
if fp < 0 then
set.input.error("|*file doesn't exist",1)
endif
If the above check returns fp=0(Sucess) means system able to find ur file so no pbm with Double backslash "\\".

Thanks & Regards
Prashant Prabhulkar

cherokee
2nd December 2009, 16:07
Thanks for the help. Yes, my source file had an space preceding the file name " myfile.txt" I fixed it "myfile.txt" and worked out.

Thanks again,