>Hi. I am doing an Array of a folder's contents. How do I test for an empty directory?
>Thanks, Randy
If you use adir(), check the return value. It will return the number of files found. From help:
"If the array exists and ADIR( ) returns 0 because no matching files are found, the array remains unchanged. If the array doesn't exist and ADIR( ) returns 0, the array isn't created."
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)