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
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
(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
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
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.
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
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
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