Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox - SQL
Message
 
 
To
27/04/2001 15:51:31
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00497353
Message ID:
00501012
Views:
47
Sorry, Chuck, I could not concentrate on your problem, because I was working on some code modifications in my applications...

What if you switch in KeyPress:
if nKeyCode=13
   nodefault
   this.value=this.value && May be it's not assigned yet?
   thisform.MyFind 
endif
If would not work, add lastkey condition in LostFocus(), as you suggested.

>Can't, since it would mean anytime I leave the field, MyFind() fires. I only want to do this on when the Enter key is pressed anywhere IN the textbox. Unless you meant I use IF LASTKEY()=13??
>
>Chuck
>
>>I think is better to call thisform.MyFind from TextBox.LostFocus event. Delete it from KeyPress, put in LostFocus thisform.MyFind(). This will work better.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform