Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to understand use of FullPath() function
Message
 
 
To
29/07/2008 15:36:09
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01335056
Message ID:
01335068
Views:
15
>From the help file: FULLPATH( ) returns the path for the first file relative to the second file

I looked in the Hacker's Guide for VFP 6 (the best explanation for many things) and they have an example very similar to what I am dealing with. Their explanation is:

"you can use FULLPATH() to find the location of a table in a DBC:
OPEN DATA TasTrade
? FULLPATH( DBFETPROP("customer", "table","path"), DBC())
* returns "F:\VFP\SAMPLES\TASTRADE\DATA\CUSTOMER.DBF"

I am still not clear why the code that I am dealing with has the DBC() parameter in it. Come to think of it, I don't think that the FULLPATH() there is necessary either. But I won't take it out unless I am certain 100% that nothing will be broken.
"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
Reply
Map
View

Click here to load this message in the networking platform