Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Append from SDF
Message
 
 
To
02/10/2002 23:24:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00707201
Message ID:
00707203
Views:
20
Hi Jalu,

Default extension for SDF file is .TXT. To specify that file doesn't have extension, add '.' (dot) to the file name.
FleName=adir(Farray,"\\server1\data\CD*")
for x=1 to FleName
    pathFl = "\\server1\data\" + Farray(x,1) + ;
              IIF(EMPTY(JUSTEXT(Farray(x,1))), ".", "")
    append from(pathFl) sdf
endfor
>Dear All,
>
>When I try to append some text files (no extention file) using :
>
>FleName=adir(Farray,"\\server1\data\CD*")
>for x=1 to FleName
> pathFl="\\server1\data\"+Farray(x,1)
> append from(pathFl) sdf
>endfor
>
>sometimes it works 100% and sometimes it comes with en error message saying that the files is not a valid text file and asking for TXT extention.
>
>Does anyone can tell where did I go wrong here ?
>
>
>Thanks.
>Jalu.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform