Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Sep 21, 2017 7:28 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Clicking on a list box not working
PostPosted: Sun Apr 21, 2013 9:51 am 
Offline

Joined: Fri Nov 18, 2005 7:26 pm
Posts: 63
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
 Profile  
Reply with quote  
 Post subject: Re: Clicking on a list box not working
PostPosted: Sun Apr 21, 2013 10:28 am 
Offline

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
 Profile  
Reply with quote  
 Post subject: Re: Clicking on a list box not working
PostPosted: Sun Apr 21, 2013 11:10 am 
Offline

Joined: Fri Nov 18, 2005 7:26 pm
Posts: 63
Thanks for this.. I did have some white space when I added it to the list box.
Its all working now


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group