5 messages in org.openoffice.fr.progUne bizarerie
FromSent OnAttachments
FabienMar 31, 2008 7:31 am 
Bernard MarcellyMar 31, 2008 11:52 am 
FabienApr 1, 2008 7:37 am 
Serge PotteckApr 1, 2008 1:56 pm 
FabienApr 2, 2008 3: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:Une bizarerieActions...
From:Fabien (fabs@wanadoo.fr)
Date:Mar 31, 2008 7:31:07 am
List:org.openoffice.fr.prog

Bonjour,

Que pensez-vous du petit programme suivant:

Sub main dim texte as string dim SansEspace as string texte = " 3" print CBool(Ltrim(texte) = CInt(texte)) SansEspace = Ltrim(texte) print CBool(SansEspace = CInt(texte)) end sub

Pour le premier "print", j'obtiens "False", pour le deuxième "True". Etonnant, non?