New topic: 

Compare texts (case sensitive)

<http://forums.realsoftware.com/viewtopic.php?t=43970>

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        dizco          Post subject: Compare texts (case 
sensitive)Posted: Fri May 11, 2012 4:24 pm                         
Joined: Sat May 05, 2012 8:59 pm
Posts: 7
Location: Montréal, Québec                When I test to know if 2 textfields 
are identical, REALbasic doesn't seem to take in charge capital letters.

if textfield1.text=textfield2.text then
  //do stuff
end if


How could I solve this?

Thanks!      
_________________
REALbasic on Windows 7  
                             Top                markwalsh          Post 
subject: Re: Compare texts (case sensitive)Posted: Fri May 11, 2012 4:42 pm     
                    
Joined: Wed May 20, 2009 4:43 pm
Posts: 789                dizco wrote:When I test to know if 2 textfields are 
identical, REALbasic doesn't seem to take in charge capital letters.

if textfield1.text=textfield2.text then
  //do stuff
end if


How could I solve this?

Thanks!
Use StrComp      
_________________
RB 2009r4 Windows XP  
                             Top                dizco          Post subject: 
Re: Compare texts (case sensitive)Posted: Fri May 11, 2012 4:58 pm              
           
Joined: Sat May 05, 2012 8:59 pm
Posts: 7
Location: Montréal, Québec                Awesome!

Thanks a lot!!      
_________________
REALbasic on Windows 7  
                             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]

Reply via email to