Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DIRECTORY()
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00167873
Message ID:
00167911
Views:
24
>>DECLARE aFiles[1,5]
>> IF ADIR(aFiles,lcRoot+lcFolder,'D')=1
>> * There's a file or folder
>> IF 'D' $ aFiles[1,5]
>> * it's a folder
>> ELSE
>> * there's a file with the name
>> ENDIF
>> ELSE
>> * There's no file or folder that matches
>> ENDIF
>>
>>
>>Thanks Ed, that works Great!
>
>And it's more reliable than DIRECTORY() in VFP5 as well. George Tasker has a class that handles some shortcomings of ADIR() in the files section as well; if you have problems with directories related to multiple '.' characters in file/directory names, his class works.

Can someone send me this class (and/or list of shortcomings) in DIRECTORY().


Thanks...Randy
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform