Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FULLPATH Problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00112576
Message ID:
00112620
Views:
34
The only time, that I know of, when fullpath() returns the default directory + file name is when it can't find the file.
You may want check the path just before FullPath() is called.

I guess we could call it a Feature :)

In code I usually test it with file(fullpath('somefile.txt')).

-Michael M. Emmons

>Correction
>
>I need to have the fullpath of an icon to be used in an OLE list view control. I have my path setup to point to the graphics sub directory, e.g. SET PATH TO 'g:\acmds\graphics;g:\acmds\data;g:\acmds\utils'
>
>setpath is on
>
>When I run the command FULLPATH('desktop.ico') in the development environment, from the command window I get 'g:\acmds\graphics\desktop.ico', but when I run it from the program I get 'g:\acmds\desktop,ico' and since there is no desktop.ico in the root directory the program will never establish an icon.
>
>Am I missing something on fullpath() or is there a bug/feature that I dont understand about it.
>
>TIA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform