Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to understand use of FullPath() function
Message
From
30/07/2008 09:57:22
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01335056
Message ID:
01335249
Views:
18
>>The first parameter, DBGETPROP('customer','table','path') returns the relative path with respect to the DBC to the customer table including the name of the file (from help)
>>The 2nd parameter is returning the path and tablename to the currently selected table - DBF()
>>
>>So you are passing to fullpath(), the relative path from the dbc to the customer table and as a 2nd parameter the path and tablename of the currently selected open table. The return from fullpath should be the path to customer.dbf from the currently selected dbf (as if pointing to it from the dbc customer resides in).
>>
>>FULLPATH( ) returns the path for the first file relative to the second file. (from Help)
>>
>>Not sure if that helps any...
>
>Yes, it helps. As it confirms my understanding. However, the example in Hacker's Guide that you quoted above determines full path to a table in a database. My example that I posted in the initial message is using to get the property DisplayClassLibrary. And the value of FULLPATH() when getting the DisplayClassLibrary does not change no matter what is the location of the database.
>I am probably confusing you now as I need to create a step-by-step scenario to show the issue.

Maybe, just maybe, the dbc and the vcx in the application are supposed to be in the same directory, or at least in sibling directories. And this use of the second parameter in fullpath() was probably supposed to help in case you don't have the actual directories in your set("path").

What is it returning in your case?

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