Re

il me semble que le caractere "espace insecable" est une caractere special (ascii 160 si je me souviens bien)

je confirme, taper un espace insecable dans un doc writer
cette petite macro nous donne 160 sur le premier caractere

Sub Main
  chaine = thisComponent.text.string
  print asc(left(chaine,1)
End Sub

Laurent

--
Laurent Godard <[EMAIL PROTECTED]> - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management >> http://www.nuxeo.com - http://www.nuxeo.org
Livre "Programmation OpenOffice.org", Eyrolles 2004-2006

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Répondre à