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