> 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
> 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'
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
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 '
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
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_