WMitchellCPQ
Programmer
I have a list box which is quite large .. say 16000 records
I need to figure out a good way of searching it..
I had a while loop to search the whole list but that is now taking too much time. I ran into this API method:
but i cant seem to get it to work
It may be as I refering to my forms oddly .. Im using this sort of approach:
Form_frm_PO_MaintainOrders.lstOutstandingOrders.Selected(k) = True
Can someone help to to search my listbox in a better way or tell me how to use the above method ? I seem to be running into problems with . hwnd bit
Cheers
W
I need to figure out a good way of searching it..
I had a while loop to search the whole list but that is now taking too much time. I ran into this API method:
Code:
lngindex = SendMessageString(List1.hwnd, LB_FINDSTRINGEXACT, -1, strFind)
' Note that we can look for a partial match with LB_FINDSTRING
' (as long as it begins the string)
but i cant seem to get it to work
It may be as I refering to my forms oddly .. Im using this sort of approach:
Form_frm_PO_MaintainOrders.lstOutstandingOrders.Selected(k) = True
Can someone help to to search my listbox in a better way or tell me how to use the above method ? I seem to be running into problems with . hwnd bit
Cheers
W