Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sensing an empty array
Message
 
 
To
18/05/2007 10:24:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01226737
Message ID:
01226742
Views:
25
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform