Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keeping the focus in a field
Message
From
03/03/2003 00:51:09
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
 
 
To
02/03/2003 17:46:35
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00760065
Message ID:
00760250
Views:
20
>Hi Paul
Thanks for the ideas and suggestions. I am not yet running VFP 8. This is what I did to work around the problem. I set the Forms Keypreview property to .t. In the textbox object I am in I tested for keypress = 27 and if detected I moved to the bottom of the file I was working my way through one record at a time. If the keypress event detected the escape key pressed, it issued a Keyboard "{Enter}" , thus firing the Valid event. The valid event checks for being at the end of the file and if so does some clean up and returns a .t. allowing exit from the textbox. So I sort of combined your original idea with a bit of tweaking. I don't think I am going to spend the time coding the mouse movement sequence. The user will just have to either process the records or press ESC to move on. Thank you for the time you spent.

Regards,
Carmen
Previous
Reply
Map
View

Click here to load this message in the networking platform