3 messages in org.openoffice.fr.progRe: [prog] calc:recupérer un texte da...
FromSent OnAttachments
Patrice DESTOUCHESNov 26, 2006 8:26 am 
christianwtdNov 26, 2006 9:01 am 
Patrice DESTOUCHESDec 4, 2006 1:43 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] calc:recupérer un texte dans une cellule calcActions...
From:christianwtd (chri@free.fr)
Date:Nov 26, 2006 9:01:45 am
List:org.openoffice.fr.prog

Patrice DESTOUCHES a écrit :

Bonsoir, Je cherche a récupérer le premier mot d'un texte se trouvant dans une cellule
calc.

J'ai réussi a récupérer le texte en entier de lafaçon suivante :

Curseur=UneCellule.createTextCursor Curseur.gotoStart(false) Curseur.gotoEnd(true)

mais la commande Curseur.gotoEndOfWord(true) qui fonctionne sous writer ne
semble pas être utilisable dans calc (message d'erreur).

Quelqu'un aurais t il la réponse a mon problème ?

Merci d'avance

Patrice DESTOUCHES

Bonsoir Patrick,

getString permet aussi de récupérer le contenu d'une cellule. Si tu as le texte entier, tu cherches le 1er espace avec Instr() et ensuite Left()

Bon surf, Christian