Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HTML files loaded in the project-how to use files from d
Message
 
 
To
02/11/2007 08:30:39
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01266026
Message ID:
01266028
Views:
9
VFP will always look first in the EXE/APP regardless if path is specified or not. You can read about that in deatails at http://spacefold.com/lisa/post/Straight-Talk-about-Built-In-Files.aspx. However any program that is not included in the current EXE/APP wouldn't see files included in it. You can use EXECSCRIPT() because it creetes a temporary prg, compiles and executes it.
lcStr = EXECSCRIPT([RETURN FILETOSTR("] + lcFileName + [")])
>I have built a DLL application using VFP9 and ASP.
>The backend (VFP) returns HTML to be displayed by the from end. The HTML is saved in files on disk and we load the ones that we need for the page that is requested.
>
>Recently we have the idea of including the HTML files in the project (in the DLL) so we can limit the number of disk requests in order to boost performance (we get 40-50 users at the same time). This worked well.
>
>However, some of the templates are modified for certain customers and those files we kept them as disk files in a special location and using the same nameing convention as those loaded in the project. My problem is that when I want to load a file from the disk and I even specify the full path - what I get back is a copy of the file loaded in the project. I understand that is can be caused by using the same name for the file, but I was hoping I can still load files from disk.
>
>I am using FILETOSTR and FOPEN - and no luck. Is there a way to force VFP to look into a disk location rather than the project files?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform