New topic: Textfield are case insensitive, why???
<http://forums.realsoftware.com/viewtopic.php?t=47397> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message gianfranco Post subject: Textfield are case insensitive, why???Posted: Mon Mar 25, 2013 11:00 am Joined: Mon Sep 28, 2009 1:29 am Posts: 31 If you do: if TextField1.Text = TextField2.Text Then MsgBox "Yes" you'll see it answer yes with "italia" - "ITALIA" WHY? so i made: Function ConfStr(InA As String, InB As String) As Boolean if len(InA) = len(InB) then dim i As Integer dim trovato As Boolean trovato = False i=0 while i < len(ina) and not(trovato) if ascb(mid(ina,i,1)) <> ascb(mid(inb,i,1)) then trovato = true end if i = i + 1 wend if trovato then return False else return true end if else return false end if I know that is a simple code. I only write it for simply talk about why (I replay) textfield1.text = textfield2.text is case insensitive??? Bye gianfranco Top timhare Post subject: Re: Textfield are case insensitive, why???Posted: Mon Mar 25, 2013 11:10 am Joined: Fri Jan 06, 2006 3:21 pm Posts: 12174 Location: Portland, OR USA ALL string comparisons in RB are case-insensitive. For case-sensitive comparison, use StrComp. Top gianfranco Post subject: Re: Textfield are case insensitive, why???Posted: Tue Mar 26, 2013 4:28 am Joined: Mon Sep 28, 2009 1:29 am Posts: 31 ...and now you come here to tell me that??? Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
