Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you determine a files home directory?
Message
From
24/07/1999 18:14:55
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
23/07/1999 17:36:32
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00244893
Message ID:
00245764
Views:
13
>You talk about a "Project's Home Path". Not sure what that is or how to read/write it.
>
>Do you know how to inspect the path associated with a file that's in the PM? That would be really useful.

I thought this was answered already. It's written in a separate field in the first record of the .pjx file. All the paths to other files are relative to this path, i.e. the files are stored with full paths ony of they're not on the same subdirectory (off the root) or not the same disk as this project's home dir. There's a function (one of the sys(20xx), I think, probably 2014) which returns the relative path to a file off a given starting directory, and this is what I think VFP uses when it writes the filenames of components to the Name field of a .pjx file. So, if you change the home directory of a project, you better don't do that manually, unless you've backuped first (second, and third, just in case), because if some of the files can't be found once the project is moved, it will complain all day long until you locate them. Just copying or moving a project along with the components, and then opening the project, will have VFP prompt you (as others have stated here) to make the new dir the homedir of the project, and VFP will recalculate the relative paths much better than a handmade routine would do.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform