Results 1 to 5 of 5

Thread: SendMessage string comparing...

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2001
    Location
    Maumelle, AR
    Posts
    624

    SendMessage string comparing...

    VB Code:
    1. Dim lstitem As String
    2. lstitem = ListView1.ListItems.Item
    3. For i = 1 To ListView1.ListItems.Count
    4. y = SendMessage(lstitem.hwnd, LB_FINDSTRING, -1, ByVal File1)

    I'm not sure if I did this right. I'm wanting to compare vice versa the following:
    VB Code:
    1. x = SendMessage(File1.hwnd, LB_FINDSTRING, -1, ByVal ListView1.ListItems.Item)
    Last edited by hipopony66; Jul 2nd, 2002 at 07:13 PM.

  2. #2
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402
    VB Code:
    1. x = SendMessage(File1.hwnd, LB_FINDSTRING, -1, ByVal ListView1.ListItems.Item.Text)


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2001
    Location
    Maumelle, AR
    Posts
    624

    um......no

    I'm wanting to compare the opposite of that. That determines if the string is found in the filelistbox. I want to determine if the string is found in the listview. Hope this makes sense.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2001
    Location
    Maumelle, AR
    Posts
    624

    Anyone?

    ^bump^

  5. #5
    jim mcnamara
    Guest
    ListViews are far more complicated. LVM_FINDITEM with an LVFINDINFO UDT is what you need. The only documentation I know about is for C++.

    Try www.allapi.net for LVM_FINDINFO and LVFINDITEM information for VB. Sorry

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