Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check if a file exists
Message
 
À
21/10/2017 08:24:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
01655128
Message ID:
01655139
Vues:
67
>From Help file:
>
>Places information about files into an array and then returns the number of files.
>
>
>ADIR(ArrayName [, cFileSkeleton [, cAttribute [, nFlag]]])
>
>3rd and 4th parameter probably unneeded in your case, as file won't be hidden or directory,
>but explained in detail in help file
>
>llFound = adir(laTmp, "*.doc")>0 && including pathname works as well as setting path
>
>>set path to home(c:\global"
>>
>>if adir(*.doc)>0 fie is found
>>ct=1
>>endif
>>
>>if ct is 1 the file is found
>>
>>Am I correct


Thanks

Colin
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform