New topic: 

Select Case and If..EndIf Broken in 2012r1.1?!?!

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

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        simulanics          Post subject: Select Case and If..EndIf 
Broken in 2012r1.1?!?!Posted: Mon Oct 15, 2012 3:42 pm                         
Joined: Sun Aug 12, 2007 10:10 am
Posts: 763
Location: Boiling Springs, SC                I have a listbox with the 
following in the change event... in RS 2012 r1.1 the select case and if/endif 
cannot successfully distinguish between "\w" & "\W" or "\s" & "\S" or "\d" & 
"\D"....

ok...if then and select case are something I learned 20 years ago... am I 
missing something, has something changed? does it not recognize 
uppercase/lowercase?..or is this a bug?


Dim Input As String

Input =  lstTypes.list(lsttypes.ListIndex)


If Input =  "." Then
  txtDescription.Text = "Matches any character, except for line breaks."
  Exit sub
End If

If Input =  "\w" Then
  txtDescription.Text = "Matches any word character (alphanumeric & 
underscore)."
  Exit sub
End If

If Input = "\W" Then
  txtDescription.Text = "Matches any character that is not a word character 
(alphanumeric & underscore)."
  Exit sub
End If

If Input =  "\d" Then
  txtDescription.Text = "Matches any digit character (0-9)."
  Exit sub
End If

If Input =  "\D" Then
  txtDescription.Text = "Matches any character that is not a digit character 
(0-9)."
  Exit sub
End If

If Input =  "\s" Then
  txtDescription.Text = "Matches any whitespace character (spaces, tabs, line 
breaks)."
  Exit sub
End If

If Input = "\S" Then
  txtDescription.Text = "Matches any character that is not a whitespace 
character (spaces, tabs, line breaks)."
  Exit sub
End If
      
_________________
Matthew A. Combatti
Real Studio 2011 r4.3
Visit Real Studio Developer's Spot!
Systems:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8 Beta
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS
~All REAL Compatible~  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
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