New topic: 

Clicking on a list box not working

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

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        Tegwin          Post subject: Clicking on a list box not 
workingPosted: Sun Apr 21, 2013 9:51 am                         
Joined: Fri Nov 18, 2005 7:26 pm
Posts: 60                I have a list box (with 1 column) and  some values 
such as 

General 
Value
CHaracteristics 


In the change event I have the following code

Select Case ListBox1.text
Case "General"
  MsgBox "General"
End Select

  
However when I click on General it does not work but if I enter this it does. 

if listBox1.Text = "General" Then
  MsgBox "You clicked General"
  
end if
  
  

Any ideas why I cant use Select Case ?   
                             Top                Ballyanthony          Post 
subject: Re: Clicking on a list box not workingPosted: Sun Apr 21, 2013 10:28 
am                         
Joined: Fri Apr 19, 2013 2:08 am
Posts: 5                Seems to work fine for me for both

Here is my example project:

http://obsoftware.eu/data/realstudio/ClickGeneral.rbp

Do you have any white space (Chr(32), Chr(13), Chr(9), etc.)?   
                             Top                Tegwin          Post subject: 
Re: Clicking on a list box not workingPosted: Sun Apr 21, 2013 11:10 am         
                
Joined: Fri Nov 18, 2005 7:26 pm
Posts: 60                Thanks for this.. I did have some white space when I 
added it to the list box. 
Its all working now   
                             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