You are not logged in.

Joel79

Beginner

  • "Joel79" is male
  • "Joel79" started this thread

Posts: 1

Date of registration: Sep 7th 2012

Location: ohio

  • Send private message

1

Friday, September 7th 2012, 7:25pm

get text from selected index in list

How do you get the text of the selected item in a list? I keep getting the index number returned instead of the text. If an example is provided it would be appreciated. thanks.

JasonS

Trainee

  • "JasonS" is male

Posts: 65

Date of registration: Feb 17th 2010

  • Send private message

2

Wednesday, October 3rd 2012, 10:19pm

Get text from selected item in listbox

Hi,


This will list (the value of the listitem) for the currently highlighted/selected item in a list box:


Jabaco Source

1
2
3
If List1.ListCount > 0 Then
	strList1SelectedItemsTextValue = List1.List(List1.ListIndex)
End If


Hope this helps! 8)

Regards,
Jason

This post has been edited 1 times, last edit by "JasonS" (Oct 6th 2012, 1:18am)


Rate this thread
WoltLab Burning Board