Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to concatenate SDF files?
Message
From
01/10/2002 12:01:38
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00705004
Message ID:
00706417
Views:
57
Ed - I am using VFP 7 SP1. Also, Nadya has suggested hardcoding the path, which I did. It worked. I also had to change the name of the file i.e., from Process*.dat to Process*.* and it copied them properly. The only problem is that I need them as sdf files and not as the regular textfiles, which is why the code could not locate the files to copy in teh first instance. should I add "type sdf" somewhere in the code? Thanks

>
>Try this instead. It isn't needed in VFP7, but perhaps some earlier version won't allow you to specify a path:
>
>
<pre>#DEFINE SOURCEPATHNAME = "c:\BW\"  && this is the BW Directory with absolute path
>#DEFINE SOURCEFILEMASK = 'PROCESS*.DAT'
>LOCAL cOldPath, nFiles, aFiles[1,5], cConCatString, i
>cOldPath = FULLPATH(CURDIR())
>CD (SOURCEFILEPATH)
>nFiles = ADIR(aBWFiles,SOURCEFILEMASK)
>cConCatString = ''
>CD (cOldPath)
>>
- Ravi

True greatness consists in being great in little things.
- Charles Simmons
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform