Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to concatenate SDF files?
Message
 
 
À
30/09/2002 18:41:59
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00705004
Message ID:
00706231
Vues:
57
I see nothing wrong here, but try it without using defined constants to check, what could be wrong, e.g.

nFiles = adir(laFiles, "c:\BW\Process*.dat')

>I changed aBWFile to aBWFiles in the LOCAL declaration. I also set the path as follows:
>
>
#DEFINE SOURCEPATHNAME = "c:\BW\"  && this is the BW Directory with absolute path
>
>Yet got the "Missing Operand" on the following line:
>
>
nFiles = ADIR(aBWFiles,SOURCEPATHNAME + SOURCEFILEMASK)
>
>
>
>>
>>>>
#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
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform