Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trap a string of numbers with Keypress Event
Message
From
18/01/1999 23:01:47
 
 
To
18/01/1999 22:57:54
Jaime Vila
Miami Children's Hosp. - Radiology
Miami, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00177377
Message ID:
00177471
Views:
51
>I had initially tried setting focus to a hidden textbox and my problem was that once you scrolled through the grid due to a full screen of records , for instance, your input textbox focus was history!!

I'm not sure I understand you here. All the textbox needs to do is initially accept the scanner input. It does not have to have focus for anything else afterwards.


>
>I also tried the scanner "preamble" feature but my application would interpret the F1 - F9 function keys differently than I had anticipated, ie. $M, $P etc. . . .
>
>Oh well, . . a hot-key will have do the trick. One last question . . . Should I use ON KEY . (or some other command) in the Forms init method or the pageframe init or the grid's or where ?
>
> Thanks again for your help.

Set the form.KeyPreview to .T., and put the code in the form's keypress event.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform