Results 1 to 3 of 3

Thread: how to point to a specific thing in a listbox? help

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    3

    how to point to a specific thing in a listbox? help

    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

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

    Re: how to point to a specific thing in a listbox? help

    If list1.List(3) < List2.List(5) Then
    will compare the 4th item in list1 with the 6th item in List2
    Frans

  3. #3
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: how to point to a specific thing in a listbox? help

    use the List() property
    VB Code:
    1. If Val(List1.List(0)) < Val(List2.List(1)) Then
    2.     'the first item of list1 is less than the second item of list2
    3. End If

    note that with listboxes the first item is always number 0
    Chris

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width