Can someone show me a small example program that makes it possible to search in a combobox an element (f.e. a name) by typing the first characters of that element (f.e. a name)?
Thank You
Kind Regards
Can someone show me a small example program that makes it possible to search in a combobox an element (f.e. a name) by typing the first characters of that element (f.e. a name)?
Thank You
Kind Regards
It's the default behavior of a dropdownlist-style combobox.
EMG
Sorry, I am not a professional programmer. Wat is a dropdowlist style combobox. Can you give me an example from source code.
Many thanks and kind regards
jds
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL cVar := ""
DEFINE DIALOG oDlg
@ 1, 1 COMBOBOX cVar;
ITEMS { "", "Pippo", "Pluto", "Paperino" }
@ 3, 1 BUTTON "Close";
ACTION oDlg:End()
ACTIVATE DIALOG oDlg;
CENTER
RETURN NILThe problem is that by typing "pap" the combobox is showing only the first record that matches the "p" in that case "pippo"...??
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL oCbx, cVar := ""
DEFINE DIALOG oDlg
@ 1, 1 COMBOBOX oCbx VAR cVar;
ITEMS { "", "Pippo", "Pluto", "Paperino" }
oCbx:lIncSearch = .T.
@ 3, 1 BUTTON "Close";
ACTION oDlg:End()
ACTIVATE DIALOG oDlg;
CENTER
RETURN NILEffectively, I tried already before the "LIncSearch=.T." function(?) but I did not work.
Is there somewhere a description of the LIncSearch function?
kind regards and I wish you a good WE
jds
Antonio,
Do you have any idea how to use lIncSearch:=.T.
kind regards
José (jds)
The items in the list have to be in alpha order.
James
of course but even that does not help to get an incremental search on a listbox (alfa handmade or by alfa array)
I confirm that the incremental search is broken in ver 10.2.
James
Guys, Antonio,
What FWH version is supporting incremental searching in a listbox??
Kind regards and a good WE
José
Can I repeat my question : how to get an incremental search in a listbox/combobox ?
Best regards
José
Hello
Otto was saying somewhere in may 2010 that incremental search was working in combobox
Please can anyone tell me what is the function to do work it ?
Kind regards
José
Jose,
It is working, BUT, it is case sensitive (and it should not be).
I will see if I can fix it.
Regards,
James