[Gambas-user] Relative paths

B Bruen bbruen at ...2308...
Wed Oct 1 09:29:02 CEST 2014


On Wed, 01 Oct 2014 08:26:26 +0200
Benoît Minisini <gambas at ...1...> wrote:

> Le 01/10/2014 06:40, B Bruen a écrit :
> > (and I thought I knew it all! )
> >
> > In a component I want to refer to a path in the client project
> > executable. To be precise in the client project I have a relative
> > path to an image file "./img/logo.png"  where that file is the
> > project logo.  In a component that is used by that client project, I
> > want to refer to that image.
> >
> > But using both "./img/logo.png" and "img/logo.png" in a Picture
> > reference returns the image in the component executable not the
> > client project executable.  The component in question is a popup form
> > that displays the ubiquitous "About Me" info and I want to show the
> > client project logo in it.
> >
> > The salient point is that I want to get at an image file in the
> > client executable.
> >
> > Any clues?
> >
> > B
> >
> 
> There is a special syntax for that: "../img/logo.png" is the
> "img/logo.png" file of the main project.
> 
> Regards,
> 
> -- 
> Benoît Minisini
> 

Ah! That works.
Thanks
B

-- 
B Bruen <bbruen at ...2308...>




More information about the User mailing list