Results 1 to 6 of 6

Thread: Finding Match in DATA combo?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2002
    Location
    SE England
    Posts
    732

    Finding Match in DATA combo?

    Hi All,

    I need to find the closest match in a DataCombo control..

    I normally use the SendMessage API for standard combo's, but this doesn't seem to work with data bound combo controls..

    Any ideas?
    Leather Face is comin...


    MCSD

  2. #2
    Addicted Member
    Join Date
    Aug 2000
    Location
    Nottingham, England
    Posts
    197
    Write a generic function that takes some match text, loops through the combo's list, does a compare on each one, and returns the ItemData that matches?
    Sent by: Steve Barker
    E-mail: [email protected]

    P.S. I KNOW 1 is not a prime!
    See this thread: http://forums.vb-world.net/showthread.php?threadid=26485

  3. #3
    Addicted Member stewie's Avatar
    Join Date
    Jan 2003
    Location
    England
    Posts
    198
    i have really nice code for non data bound :-)
    i actualy feel sick just thinking about databound dont that to me again heh
    if you decide for non db let me know
    The internet is a great tool. Many people like me suffer in the real world when there are so many people with the "O he is so good looking he has no troubles, why help him out with anything" attitude.

  4. #4
    Addicted Member stewie's Avatar
    Join Date
    Jan 2003
    Location
    England
    Posts
    198
    Originally posted by 1 is a prime!
    Write a generic function that takes some match text, loops through the combo's list, does a compare on each one, and returns the ItemData that matches?
    for some reason this is really buggy and results in a lot of crashes
    The internet is a great tool. Many people like me suffer in the real world when there are so many people with the "O he is so good looking he has no troubles, why help him out with anything" attitude.

  5. #5
    Let me in .. techyspecy's Avatar
    Join Date
    Aug 2002
    Location
    Back to VBF.
    Posts
    2,456
    Originally posted by stewie
    i have really nice code for non data bound :-)
    i actualy feel sick just thinking about databound dont that to me again heh
    if you decide for non db let me know
    You have some attitude problem !!! Don't you think ?

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2002
    Location
    SE England
    Posts
    732
    Thanks "1 is a prime" but i don't want to loop through, that is why I mentioned the SendMessage API..

    Not to worry, I think I am getting there slowly...

    I am going to have to use post message, and work out the drop down combination..
    Leather Face is comin...


    MCSD

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