Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FullPath() in GenHTML problem
Message
From
12/07/2001 16:51:36
Gil Munk
The Scarborough Group, Inc.
Baltimore, Maryland, United States
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00521631
Message ID:
00529986
Views:
10
Sergey,

I finally got back to my FULLPATH() problem and I removed one of my SET PATH statements and it worked! The SET PATH was to the specific folder where the .frx was located. Removing this set path must have allowed the original SET PATH to work. And thanks for the explanation of the order of searches for fullpath(), it educated me.

- Gil

>Gil,
>
>I guess from your post that Payments.frx is not included in an application.
>
>There is an order in wich FULLPATH searches for a file:
>
>1. A defaut directory (SET DEFAULT TO). FULLPATH("") will return the current default directory.
>2. Foxpro path (SET PATH TO). SET("PATH") return current foxpro path.
>
>If file not found the FULLPATH return'll look like file was found in the default directory.
>
>Let's assume that actual full path is 'C:\Reachout\ReportsPayments.frx'.
>In order for FULLPATH to find file 'Reports\Payments.frx' you have to set default directory to 'C:\Reachout\' or set path to C:\Reachout\ and make sure that there isn't file 'Reports\Payments.frx' in the default directory.
>
>HTH
>
>>This is more on my original problem with printing and sending output to HTML...
>>
>>GenHTML attempts to set the full path of the report form in this line:
>>
>>lvSource=LOWER(FULLPATH(lvSource))
>>
>>No matter what I do to force FULLPATH() to see the \Reports folder under my Executable's root folder, it always returns the path to my Development folder. I have issued SET PATH TO \REPORTS, SET PATH TO REPORTS, SET PATH TO, immediately before the line above, but to no avail. My executable is even on a different drive and path than my development folder (C:\Reachout).
>>
>>The variable lvSource is 'Reports\Payments.frx' just before the Fullpath() and is the correct relative path and filename. After the Fullpath() it is 'D:\Vfpapps\Reachout\Reports\Payments'.
>>
>>Any help / ideas would be appreciated.
Gil Munk


"If a nation expects to be ignorant and free, it expects what never was and never will be." - Thomas Jefferson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform