You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

fallon416

Beginner

  • "fallon416" started this thread

Posts: 28

Date of registration: Mar 26th 2010

  • Send private message

1

Friday, March 26th 2010, 8:48pm

listbox support

Hi,

I'm having a bit of a problem with the ListBox control. In vb there are number of ways to get the selected item of a listbox:

method 1:

If lstPlaylist.ListIndex <> -1 Then
lblTitle.Caption = lstPlaylist.List(lstPlaylist.ListIndex)
End If


method 2: lblTitle.Caption = lstPlaylist.Text

How is it done in Jabaco?

fallon416

Beginner

  • "fallon416" started this thread

Posts: 28

Date of registration: Mar 26th 2010

  • Send private message

2

Saturday, March 27th 2010, 3:34am

I figured it out. I was being a meat head and put the code in the wrong section.

This works:

lblTitle.Caption = lstPlaylist.List(lstPlaylist.ListIndex)

Neil

Rate this thread
WoltLab Burning Board