Real Software Forums
http://forums.realsoftware.com/

Clicking on a list box not working
http://forums.realsoftware.com/viewtopic.php?f=10&t=47657
Page 1 of 1

Author:  Tegwin [ Sun Apr 21, 2013 9:51 am ]
Post subject:  Clicking on a list box not working

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 ?

Author:  Ballyanthony [ Sun Apr 21, 2013 10:28 am ]
Post subject:  Re: Clicking on a list box not working

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.)?

Author:  Tegwin [ Sun Apr 21, 2013 11:10 am ]
Post subject:  Re: Clicking on a list box not working

Thanks for this.. I did have some white space when I added it to the list box.
Its all working now

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/