Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Re populating a listbox
Message
From
20/03/2008 10:54:00
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01303858
Message ID:
01303893
Views:
16
Hi Timothy,

It all depends on your data. From my point of view, keypress is mostly the best.
If you want a filter command including a LIKE-statement containing the current value of the inputfield, the keypress can handle this.
If you want to wait until the user has finished the input, and presses TAB or ENTER then you could react on the CR or TAB-Values of inkey() with the keypress-event (and addionally lostfocus if the mouse is clicking elsewhere)

Simply use Bindevent() to catch keypress and lostfocus and handle the existing content.
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform