Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Path not found
Message
General information
Forum:
Visual FoxPro
Category:
Project manager
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01261080
Message ID:
01261081
Views:
11
>Hi All
>Have put vfp 9 on a pc along with CodeMine 7.5. Also copied 2 projects from another pc.
>Was able to do the project startup stuff, and then compile each project.
>
>When I opened the .Exe of one project it was "stuck in the Home directory" for that project so it couldn't find the dbf for that form I was trying to open. I put the following path statements in the project startup method but it didn't make any difference.
>set path to justpath(sys(16,1))
>set path to justpath(sys(16,1))+"\data" additive && this is where the dbf resides.
>
>The other project also compiles ok but when I open the form it opens alright, but it isn't pointing to the test data. It's pointing to "real" data that is part of the installed application. (Installed the setup.exe on that pc with a package something like InstallShield).
>
>So the paths for both projects are not working correctly.
>The config.fpw has resource = off. Foxuser.dbf is empty.
>What can I do to correct this problem?
>All help appreciated.
>Bill Wright

Check the Help File for Application.ServerName and Application.DefaultFilePath

I usually have something like this:
If Type("Application.ActiveProject") = "O" Then
	Application.DefaultFilePath = Application.ActiveProject.HomeDir
Else
	Application.DefaultFilePath = Justpath(Application.ServerName)
EndIf
Carlos Alloatti
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform