Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to concatenate SDF files?
Message
From
30/09/2002 18:22:01
 
 
To
30/09/2002 18:12:31
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00705004
Message ID:
00706160
Views:
45
>Hi Ed:
>
>I got a "Missing Operand" error message on the following line.
>
>
nFiles = ADIR(aBWFiles,SOURCEPATHNAME + SOURCEFILEMASK)
>
>
>>
LOCAL cConCatString, aBWFile[1,5], nFiles, i
This is the first possible problem; I refer to an array aBWFiles everywhere other than the local; changing "aBWFile" to "aBWFiles" might correct this.

>>
#DEFINE SOURCEPATHNAME = '.\BW\'  && this is the BW subfolder of the Current Working Directory
You might want to try changing this into an absolute path rather than a relative path - the BW subfolder might not reside beneath your current working folder

>>
#DEFINE SOURCEFILEMASK = 'PROCESS*.DAT'
>>cConCatString = ''
>>nFiles = ADIR(aBWFiles,SOURCEPATHNAME + SOURCEFILEMASK)
>>FOR i = 1 TO nFiles  && this avoids all copies if no files were found
>>   cConCatString = cConCatString + FILETOSTR(SOURCEPATHNAME + aBWFiles[i,1])
>>ENDFOR
>>=STRTOFILE(cConCatString,'MyConCatFile.DAT',.F.)  && .T. would append to any existing MyConCatFile.DAT found
>>RELEASE cConCatString  && releases the large string memory allocation
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform