>I need to check for the existence of a directory under Foxpro 2.6. The command is DIRECTORY(cExpression) in VFP 7.0, but this function/command does not exist in 2.6. How can I do this in 2.6?
>
>Grace and peace,
>
>John
Two methods spring to mind.
Use ADIR() and check the resulting array if it returns more than 0.
Or FCreate() a temp file, and erase the temp file. The LLFN's don't trigger error conditions if they fail -- they just return negative numbers.
Previous
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