Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fullpath() Returning Incorrect Path
Message
From
05/11/2001 16:42:16
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00577485
Message ID:
00577628
Views:
22
>>Sergey,
>>
>>Okaaaaay... So, if the file doesn't exists then FullPath() returns the default directory? That's useful... :-\ I would think returning an empty string would make more sense. Oh, well...
>>
>
>On other hand this FULLPATH() behavior offers easy way to save current foxpro directory
lcSaveDefDir = FULLPATH("")
>SET DEFAULT TO (lcNewPath)
>...
>SET DEFAULT TO (lcSaveDefDir )
>
I use it all the time.

My two favorite tricks are Set("Directory") which returns the current directory without the final backslash, and Fullpath(curdir()) which does the same, with the backslash.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform