J
janKowalskiPL
Hello,
I am building a form which will play with all selected lines in
ListBox. I have ListBox filled like that:
Option1
Option2
Option3
and I select by mouse Option1 and Option2. The problem is as follows:
How to get these selected elements (I mean strings like 'Option1',
'Option3', not indexes).
My code:
For i = 0 To MyList.ListCount - 1
If MyList.Selected(i) Then
MyString = MyString & MyList.??? // what to put
here??? cause ItemData return index, not string value
End If
Next
Regards, Jan
I am building a form which will play with all selected lines in
ListBox. I have ListBox filled like that:
Option1
Option2
Option3
and I select by mouse Option1 and Option2. The problem is as follows:
How to get these selected elements (I mean strings like 'Option1',
'Option3', not indexes).
My code:
For i = 0 To MyList.ListCount - 1
If MyList.Selected(i) Then
MyString = MyString & MyList.??? // what to put
here??? cause ItemData return index, not string value
End If
Next
Regards, Jan