6 messages in org.openoffice.fr.progRe: [prog] OOo Basic - Bug de la fonc...
FromSent OnAttachments
Erwan SoubenJan 17, 2007 1:59 am 
Laurent GodardJan 17, 2007 2:23 am 
Erwan SoubenJan 17, 2007 2:35 am 
Laurent GodardJan 17, 2007 3:00 am 
Erwan SoubenJan 17, 2007 3:27 am 
Laurent GodardJan 17, 2007 3:46 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] OOo Basic - Bug de la fonction InStr ?Actions...
From:Laurent Godard (lgod@indesko.com)
Date:Jan 17, 2007 2:23:21 am
List:org.openoffice.fr.prog

Bonjour

sInput = "OpenOffice est GÉNIAL" iPos = Instr(sInput,"C") iPos = Instr(sInput,"g") iPos = Instr(sInput,"génial") print iPos

InStr ne considère pas que les majuscules accentuées sont équivalentes aux minuscules accentuées même si Compare est omis.

GENIAL a toujours ete different de génial, quelque soit "compare" il me semble

pour ton test, faire iPos = Instr(lCase(sInput),"génial")

Faut-il déposer une Issue ? (mais petit scarabée ne sait pas faire…)

je vais reverifier les specs de Instr pour voir

Sinon, de la nouriture pour les petits scarabés http://fr.openoffice.org/Documentation/How-to/General/IZ_1.0_htm/IssueZilla_1.0.html

Laurent