Hi,
What is the easiest way to get this behavior... a user starts typing data into a listbox and the listbox automatically populates itself and selects the 1st matching record with matching data as typed and sets the listbox's value property to the selected value and highlights it if it matches.
I have IncrementalSearch set to .T. and have been trying code in the InteractiveChange event to no avail, so I must be missing something here.
Using VFP9sp2...
I've also used this code in an user entry textbox that populates the listbox, but is very inefficient;
.list1.RowSourceType = 3
.list1.RowSource = 'SELECT vendor_id, v_name distinct FROM inv_list WHERE vendor_id = UPPER(ALLTRIM(this.value)) order by vendor_id into cursor curVendor'
The idea here is upon entering the listbox the user starts typing the search term and the listbox incrementally builds a list of matches and when the user is within sight of the intended value they can easily use their arrows to finish selecting the one desired. All this is done without ever switching to the mouse...
Also having an issue showing the 2 fields in the listbox.
Thanks, Stanley
What is the easiest way to get this behavior... a user starts typing data into a listbox and the listbox automatically populates itself and selects the 1st matching record with matching data as typed and sets the listbox's value property to the selected value and highlights it if it matches.
I have IncrementalSearch set to .T. and have been trying code in the InteractiveChange event to no avail, so I must be missing something here.
Using VFP9sp2...
I've also used this code in an user entry textbox that populates the listbox, but is very inefficient;
.list1.RowSourceType = 3
.list1.RowSource = 'SELECT vendor_id, v_name distinct FROM inv_list WHERE vendor_id = UPPER(ALLTRIM(this.value)) order by vendor_id into cursor curVendor'
The idea here is upon entering the listbox the user starts typing the search term and the listbox incrementally builds a list of matches and when the user is within sight of the intended value they can easily use their arrows to finish selecting the one desired. All this is done without ever switching to the mouse...
Also having an issue showing the 2 fields in the listbox.
Thanks, Stanley