4 messages in org.openoffice.fr.progRe: [prog] Paramètre et macro
FromSent OnAttachments
Vincent MorlotOct 17, 2004 2:43 am 
Laurent GodardOct 17, 2004 2:49 am 
Vincent MorlotOct 17, 2004 6:29 am 
Laurent GodardOct 17, 2004 11:15 pm 
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] Paramètre et macroActions...
From:Laurent Godard (lgod@indesko.com)
Date:Oct 17, 2004 11:15:55 pm
List:org.openoffice.fr.prog

Bonjour Vincent

if (qsystem = 1) then sFileURL = "file:///P:/" & MonTrait & ".csv" else sFileURL = "file:///home/vincent/boulot/" & MonTrait & ".csv" endif

Donc je voudrai pouvoir passer en param MonTrait

soit la macro Main sub Main(MonTrait as string) ... end sub

si c'est en ligne de commande pure ooffice "macro:///general.module1.main(toto)"

si c'est dans un fichier batch qui doit relayer - win ooffice "macro:///general.module1.main(%1)" - linux ooffice "macro:///general.module1.main("$1")"

HTH

<pub> Références dans le livre Programmation OpenOffice.org : Executer une macro en ligne de commande pp29-32 </pub>

Laurent