Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox - SQL
Message
 
 
To
27/04/2001 14:49:17
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:
00500983
Views:
49
>I am not trying to make you fix all my coding problems, but this one, something isn't right.
>
>In the 'Find' button, ClickEvent, there is only one line and it works 'prefectly':
>ThisForm.MyFind()
>
>In the textboxes, KeyPressEvent, the following is in there and it does not work right (lists all at first, but then after first try, it seems "OK"?):
>LPARAMETERS nKeyCode, nShiftAltCtrl
>IF nKeyCode=13
> ThisForm.MyFind()
> NoDefault
>ENDIF

>
>Chuck

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.

>
>>What exacly doesn't work? Could you post the offending code, please?
>
>
>>>>>>if nKeyCode=13
>>>>>>   thisform.MyFind()
>>>>>>   nodefault
>>>>>>endif
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform