Hi
how do you point to a specific item in a listbox. i.e. io wanna say if the first thing in one list is less then the second in another list
please help
Printable View
Hi
how do you point to a specific item in a listbox. i.e. io wanna say if the first thing in one list is less then the second in another list
please help
If list1.List(3) < List2.List(5) Then
will compare the 4th item in list1 with the 6th item in List2
use the List() property
VB Code:
If Val(List1.List(0)) < Val(List2.List(1)) Then 'the first item of list1 is less than the second item of list2 End If
note that with listboxes the first item is always number 0