Hello,
is there an easy way I can resolve the relative filenames in a project
table to the full path so I can list all the source files and their full
path in a project?

eg:

I have a project: "j:\dev\costing\kmcost.pjx"

In that table, the first record has a name field of
"j:\dev\costing\kmcost.pjx". There are also a bunch of source files with
names such as
"..\\common\c_det3.prg"

Is there an easy way to resolve that to "j:\dev\common\c_det3.prg" or do I
have to parse the ".." stuff myself?


--
TIA
Andrew Howell

Re: Resolving relative filenames from project by Stefan

Stefan
Wed Dec 01 10:39:49 CST 2004

Hi Andrew,

In Vfp you can use the project.Files collection
? _vfp.ActiveProject.Files[1].Name
I believe in FoxPro 2.x you may need to make your own procedure.
Would FullPath() work for you?


hth
-Stefan

"Andrew Howell" <ajh@work> schrieb im Newsbeitrag
news:u8coQK81EHA.2600@TK2MSFTNGP09.phx.gbl...
> Hello,
> is there an easy way I can resolve the relative filenames in a project
> table to the full path so I can list all the source files and their full
> path in a project?
>
> eg:
>
> I have a project: "j:\dev\costing\kmcost.pjx"
>
> In that table, the first record has a name field of
> "j:\dev\costing\kmcost.pjx". There are also a bunch of source files with
> names such as
> "..\\common\c_det3.prg"
>
> Is there an easy way to resolve that to "j:\dev\common\c_det3.prg" or do I
> have to parse the ".." stuff myself?
>
>
> --
> TIA
> Andrew Howell
>
>


Re: Resolving relative filenames from project by TonySper

TonySper
Wed Dec 01 11:10:52 CST 2004

Andrew,
path = justpath(fullpath('filename'))
Will come back with the location of the file.
TonySper

"Andrew Howell" <ajh@work> wrote in message
news:u8coQK81EHA.2600@TK2MSFTNGP09.phx.gbl...
Hello,
is there an easy way I can resolve the relative filenames in a
project
table to the full path so I can list all the source files and their
full
path in a project?

eg:

I have a project: "j:\dev\costing\kmcost.pjx"

In that table, the first record has a name field of
"j:\dev\costing\kmcost.pjx". There are also a bunch of source files
with
names such as
"..\\common\c_det3.prg"

Is there an easy way to resolve that to "j:\dev\common\c_det3.prg" or
do I
have to parse the ".." stuff myself?


--
TIA
Andrew Howell




Re: Resolving relative filenames from project by Andrew

Andrew
Thu Dec 02 02:42:02 CST 2004

TonySper wrote:
> Andrew,
> path = justpath(fullpath('filename'))
> Will come back with the location of the file.

FULLPATH() - just what I want. I was so busy looking in foxtools help that I
didn't realise it was a built in function ;)

--
Thanks
Andrew Howell



Re: Resolving relative filenames from project by TonySper

TonySper
Thu Dec 02 16:09:40 CST 2004

I have had the same problem. Can't find it because it is to close to
my nose sometimes.
TonySper

"Andrew Howell" <ajh@work> wrote in message
news:ekSuOrE2EHA.3616@TK2MSFTNGP11.phx.gbl...
TonySper wrote:
> Andrew,
> path = justpath(fullpath('filename'))
> Will come back with the location of the file.

FULLPATH() - just what I want. I was so busy looking in foxtools help
that I
didn't realise it was a built in function ;)

--
Thanks
Andrew Howell