Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with sys(2000)
Message
De
24/03/1999 11:17:53
 
 
À
24/03/1999 10:46:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00201452
Message ID:
00201480
Vues:
10
John,

Thanks for your suggestion - it now works exactly as I want it to.

Alan

>Hi Alan --
>
>Look into processing your files using the ADIR() function, which throws all matching filenames into an array and is much more applicable to multiple file processing.
>
>
>>I am using the command sys(2000,'/*.*',1) in a do loop to process each of the files in a specific directory - in test mode I merely display the names of the files on the screen. The first time I run this code, it works fine. However, if I re-run it no file names appear on the screen, even though the files are still resident in the correct directory.
>>
>>The actual code is:
>>
>>do while sys(2000,'p:\apps\outcomes\*.*',1)+' ' <> ' '
>> mfilename = sys(2000,'p:\apps\outcomes\*.*)
>> ? mfilename
>> wait""
>>enddo
>>
>>All the filenames which are in the directory are like "outcMMDD" where MM and DD are replaced by the month and day the file was created. There is a dbf and an fpt file for each name.
>>
>>Any help or suggestions would be appreciated.
>>
>>Thanks,
>>
>>Alan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform