Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anyone know of a way to check for valid path?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00192165
Message ID:
00192172
Views:
31
>>Hi all,
>>
>>The problem is simple: If I have a stored path, something like:
>>lcPath = 'C:\thisfolderdoesnotexist\nowhere'
>>
>>I'd like to check if the past exists or not.
>>
>>I checked functions included in FOXTOOLS.FLL and nothing really did the job. I don't think VFP 6 has a function for this yet, and I'm using VFP 5 for this project. I've been suggested to use arrays, etc.
>>
>>But before I start jack-hammering keys like crazy, wanted to do a check first.
>>
>>:(
>>
>>What do u propose to verify for its validity?
>>
>>Thanks a lot,
>>
>>Gil
>
>Undocumented:
>
>DIRECTORY()


#1 I can't believe I beat you, You must be really busy with that new VFP program.

# 2 Is documented:

Returns true (.T.) if the specified directory is found on disk.

Syntax

DIRECTORY(cDirectoryName)

Returns

Logical

Arguments

cDirectoryName Specifies the name of the directory to locate. If you do not include an absolute path for the directory you specify, Visual FoxPro searches for the directory relative to the Visual FoxPro default directory.

Remarks

The Visual FoxPro default directory is specified with SET DEFAULT.

Jeff

It's Time to get a gun.

That's what I've been thinkin.

I think I can afford one, If I do a little less Drinkin.

www.TrueGeeks.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform