Re: [Harbour] Re: hbide_pathProc() - Merging Paths - Clarification

2010-02-03 Thread Viktor Szakáts
> Analyze this scenario: > > I know the location of my project, say > > C:\dev_projects\ > > Some souce is selected with fileopen dialog and it is > > C:\dev_projects\vouch\source\vouch.prg > > Now I want to retieve the relative path of this source with > > cRelative := hb_pathProc( "C:\dev

Re: [Harbour] Re: hbide_pathProc() - Merging Paths - Clarification

2010-02-03 Thread Viktor Szakáts
> Viktor Szakáts wrote: >> >> It's only necessary if you want to avoid repeating >> the same long path a lot of times and this long path is >> not devisable from any root paths. For such purpose, >> you can use macros, like you say, and this is supported >> also by hbmk2 ('{MYPATH}\source.prg'

[Harbour] Re: hbide_pathProc() - Merging Paths - Clarification

2010-02-03 Thread Pritpal Bedi
Hi Analyze this scenario: I know the location of my project, say C:\dev_projects\ Some souce is selected with fileopen dialog and it is C:\dev_projects\vouch\source\vouch.prg Now I want to retieve the relative path of this source with cRelative := hb_pathProc( "C:\dev_projects\vouch\sourc

[Harbour] Re: hbide_pathProc() - Merging Paths - Clarification

2010-02-03 Thread Pritpal Bedi
Viktor Szakáts wrote: > > It's only necessary if you want to avoid repeating > the same long path a lot of times and this long path is > not devisable from any root paths. For such purpose, > you can use macros, like you say, and this is supported > also by hbmk2 ('{MYPATH}\source.prg' and '

Re: [Harbour] Re: hbide_pathProc() - Merging Paths - Clarification

2010-02-03 Thread Viktor Szakáts
Hi, > hbide_pathProc() is only effective when > source tree is beneath its location only. In case > it is there on some upper level folder, this mechanism > fails. No it doesn't fail. If it's in an upper level directory, the only change is that you will use "..\..\mysource.prg". If the "uppe

[Harbour] Re: hbide_pathProc() - Merging Paths - Clarification

2010-02-03 Thread Pritpal Bedi
Hello Viktor hbide_pathProc() is only effective when source tree is beneath its location only. In case it is there on some upper level folder, this mechanism fails. But in real development pattern one has adopted since years has to be changed. For example, I keep my sources in {root}/dev_