>Any one know how to check if a directory exist in VFP5.0. The API of windows 95 must have a function call to do this.
>
>I like to sub-classe the function.
I use for this simple function called
CheckDirlparameter lcDirToFind
local lnIsDir
lnisDir=aDir(awhat,lcDirToFind,"D")
return lnIsDir
so you can use code like this:
if CheckDir("data\myfilesdir")=0
else
endif
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison