General information
Category:
Coding, syntax & commands
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only