Posts: 129
Threads: 38
Joined: May 2006
Dir d; str sPath
str x="c:\smithdr\200609*.txt"
str y
foreach(d x FE_Dir 0x4)
sPath=d.FileName(1)
y.from(y sPath); err
out y
What I get as a result is one long string:
c:\smithdr\20060910.txtc:\smithdr\20060911.txt
What I need is to insert [] between the file names:
c:\smithdr\20060910.txt[]c:\smithdr\20060911.txt
How do I fix this
Posts: 1,769
Threads: 410
Joined: Feb 2003
do this.
,y.from(y "[]" sPath); err
Posts: 129
Threads: 38
Joined: May 2006
Almost there but not yet. I need the string to look exactly like this, including the open and close quotes:
"c:\smithdr\20060910.txt[]c:\smithdr\20060911.txt"
not a physical hard return
Posts: 12,073
Threads: 140
Joined: Dec 2002
Use escape sequence [91] instead of [. Or, even easier, 2 strings: "[" "]".
Posts: 129
Threads: 38
Joined: May 2006