13 messages in org.openoffice.fr.progRe: [prog] Chemins relatifs
FromSent OnAttachments
SEGUIN FrançoisSep 29, 2007 4:40 am 
xavier roguiezSep 29, 2007 4:45 am 
Bernard MarcellySep 29, 2007 5:24 am 
Bernard MarcellySep 29, 2007 5:31 am 
xavier roguiezSep 29, 2007 5:43 am 
Bernard MarcellySep 29, 2007 6:28 am 
xavier roguiezSep 29, 2007 8:17 am 
SEGUIN FrançoisSep 29, 2007 8:39 am 
xavier roguiezSep 29, 2007 9:03 am 
Bernard MarcellySep 29, 2007 9:37 am 
xavier roguiezSep 29, 2007 9:53 am 
Bernard MarcellySep 29, 2007 10:03 am 
SEGUIN FrançoisSep 29, 2007 11:48 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [prog] Chemins relatifsActions...
From:Bernard Marcelly (marc@club-internet.fr)
Date:Sep 29, 2007 9:37:00 am
List:org.openoffice.fr.prog

Message de xavier roguiez date 2007-09-29 18:03 :

Bonsoir

Fin de mon problème

Relatif à quoi ? Si c'est par rapport à un emplacement connu tu peux calculer l'adresse complète. Par exemple si c'est le même répertoire que celui d'un document ouvert, tu peux connaître l'adresse de stockage du document ( ceDocument.URL )

Voila ce que je souhaitais faire, il y a certainement plus simple ? En tout cas, çà fonctionne pour l'instant

aDir=monDocument.URL resChaine = Split(aDir, "/", 50) : aDir="" for i=LBound(resChaine) to UBound(resChaine)-1 aDir=aDir+resChaine(i)+"/" next aFile = aDir + "mdp.tex"

C'est la bonne direction, et mieux en utilisant aussi Join

Dim v As Variant, aFile As String v = split(thisComponent.URL, "/") v(UBound(v)) = "mdp.tex" aFile = join(v, "/")

______ Bernard