Predictive Text

Started by Petrus Vorster, April 08, 2013, 11:56:11 AM

Previous topic - Next topic

Petrus Vorster

Hi all

Do PB have away one can have predictive text in a textbox like in VB.Net?
-Regards
Peter

Wilko Verweij

I don't know about .NET, but I know other examples (let's say comparable to the keyword suggestions in FireFly). As far as I know you have to program that yourself, that is, I don't know of any buit-in feature for this. Ask Paul how he does it for the keywords...
Wilko

Petrus Vorster

Thanks. In .Net its simply a case of linking a data column in your DB to a textbox and there you go, or a simple TXT file.
I would not even know where to start if i have to program that myself!!!
Will ask Paul.

Thanks!
-Regards
Peter

Rolf Brandt

#3
Hi Petrus,

here is a little project to get you startet. The relevan code is in the TXT_CHANGE Event.
(Notice that it needs still a little code to handle the Backspace key etc.)

Rolf

PS:
The listbox is there only to show you the possible values in the string.
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Petrus Vorster

Thanks a million Rolf!
You have helped me so many times!!!!

Regards!
-Regards
Peter

Rolf Brandt

That's what I love about this forum. I myself too received so many quick and competent help from Paul and others. And Netiquette is still held up here.

Rolf
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)