Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to understand use of FullPath() function
Message
 
 
To
29/07/2008 17:37:14
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01335056
Message ID:
01335096
Views:
14
>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.

Thank you for your help.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform