12 messages in org.openoffice.fr.progRe: [prog] [OOoBasic] Comment détecte...
FromSent OnAttachments
BobJul 23, 2004 3:09 pm 
Bernard MarcellyJul 25, 2004 12:28 am 
BobJul 26, 2004 12:17 pm 
Laurent GodardAug 2, 2004 8:49 am 
Bernard MarcellyAug 3, 2004 12:50 am 
Laurent GodardAug 3, 2004 1:21 am 
BobAug 3, 2004 1:46 am 
BobAug 9, 2004 2:50 am 
Bernard MarcellyAug 9, 2004 6:11 am 
BobAug 9, 2004 2:16 pm 
Bernard MarcellyAug 10, 2004 4:56 am 
BobAug 31, 2004 2:50 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] [OOoBasic] Comment détecter si une sub ou function est implémentée dans un module ?Actions...
From:Laurent Godard (list@wanadoo.fr)
Date:Aug 2, 2004 8:49:53 am
List:org.openoffice.fr.prog

Bonjour,

La solution de Bernard fonctionne, pas de problemes

Voici une autre approche manipulant les modules et library de OOo Supprime le Globalscope pour une library contenue dan sun fichier Ceci n'est qu'un exemple de recherche d'une fonction dan sle module MISC de la library partagée TOOLS

J'espère avoir bien saisi la problématique ...

Bon courage

Laurent

'-----------------------------

sub TestLib

'Les librairies partagées de OOo oGlobalLib = GlobalScope.BasicLibraries

'La librairies Tools que nous allons manipuler doit etre chargée BasicLibraries.LoadLibrary("Tools")

'On recupere l'objet library Tools maLib = oGlobalLib.getByName("Tools")

'On recupere le Module MISC de la library tools monModule=maLib.getbyname("Misc")

'monModule est une chaine de caractere 'On y recherche la fonction GetStarOfficeLocale()

if instr(monModule,"Function GetStarOfficeLocale()")<>0 then print "La fontion est présente" else print "la fonction est absente" endif

end sub