Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trapping keypress in ListBox for Incrementalsearch
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Trapping keypress in ListBox for Incrementalsearch
Miscellaneous
Thread ID:
00477903
Message ID:
00477903
Views:
51
Hi all
I use a listbox to dispaly some information and the incremental searche too.
But I got this information in the listbox

0000000001 | Benoit
0000000002 | Pierre
0000000003 | Jacques .....

It is not useful typing all the zero before the number!
Is it possibel to do somting like traping the kepress, pad the value, and make the list search the new Value
Ex..

List.Keypress
local lval
lval = Chr(lastkey())
lval = Padl(lval,10,"0")
keyboard lval

Any tips?

Benoit
Next
Reply
Map
View

Click here to load this message in the networking platform