Re: [Gambas-user] Relative paths

2014-10-01 Thread B Bruen
On Wed, 01 Oct 2014 08:26:26 +0200 Benoît Minisini 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

Re: [Gambas-user] Relative paths

2014-09-30 Thread Benoît Minisini
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 comp

[Gambas-user] Relative paths

2014-09-30 Thread B Bruen
(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 wa

Re: [Gambas-user] Relative paths in a component

2012-04-22 Thread Fabien Bodard
2012/4/22 Adrien Prokopowicz : > Le dimanche 22 avril 2012 17:48:28 Benoit Minisini a écrit : >> If Left(Path) <> "/" then Path = ".." &/ Path > > Great, thanks. :) > > -- > For Developers, A Lot Can Happen In A Second. > B

Re: [Gambas-user] Relative paths in a component

2012-04-22 Thread Adrien Prokopowicz
Le dimanche 22 avril 2012 17:48:28 Benoit Minisini a écrit : > If Left(Path) <> "/" then Path = ".." &/ Path Great, thanks. :) -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You.

Re: [Gambas-user] Relative paths in a component

2012-04-22 Thread Benoit Minisini
I'm not at home but I answer anyway... This magic path already exists. :-) Just add "../" before the relative path. Public Sub Open(Path As String) Dim fichier As File If Left(Path) <> "/" then Path = ".." &/ Path ... 2012/4/22 Fabien Bodard > 2012/4/22 Adrien Prokopowicz : > > Hi Ben

Re: [Gambas-user] Relative paths in a component

2012-04-22 Thread Fabien Bodard
2012/4/22 Adrien Prokopowicz : > Hi Benoît, > > In gb.xml, in XmlReader, i'm loading a file through the Open instruction : > > Public Sub Open(path As String) > >  Dim fichier As File > >  fichier = Open path For Input >  Me.InputStream = fichier > > End > > But when path is a relative path, it ref

[Gambas-user] Relative paths in a component

2012-04-22 Thread Adrien Prokopowicz
Hi Benoît, In gb.xml, in XmlReader, i'm loading a file through the Open instruction : Public Sub Open(path As String) Dim fichier As File fichier = Open path For Input Me.InputStream = fichier End But when path is a relative path, it refers to the project of the component, not to t