Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sensing an empty array
Message
 
 
À
18/05/2007 10:24:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01226737
Message ID:
01226742
Vues:
23
>Hi. I am doing an Array of a folder's contents. How do I test for an empty directory?
>Thanks, Randy

Hmmm, do you mean lnFiles = adir(laFiles,'MyDir\*.*')

lnFiles = 0 && No files in the directory.

As alternative you may try to get size of the directory.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform