Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keyboard freezup
Message
 
 
To
13/08/1997 11:23:55
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00044448
Message ID:
00044471
Views:
37
>>>One of our departments uses a wand to scan in a barcode representation of a Social Security Number. (999-99-9999)
>>>The entry field also contains the following code in the keypress event:
>>>
>>>if nkeycode = 134 then &&F12
>>> thisform.F12search
>>>endif
>>>
>>>The problem is, every once in a while, when scanning in a SSN, the program completely freezes up. I suspect that this is because it is trying to execute the preceding code in between every key, and the program thinks that the keys are being pressed too fast. If this sounds legitimate, how can I work around it? If not, what could be causing the screen to lock up? This is a very urgent problem, as this a very high volume screen and the problem is causing serious delays. Thanks in advance for any help you can give.
>>>
>>>Erik
>>
>>Text.KeyPress Code itself shouldn't freeze the form. Maybe you fire Form.KeyPress event (check Form.KeyPreview property).
>
>There is no code in the form.keypress, and form.keypreview = .F. This only happens when the scanner is being used, and not from the keyboard. The scanner sends keyboard data in a very quick stream after the barcode has been completely scanned. Any other ideas on what couls be causing this?
>
>Erik

I do know scanners usually issue an automatic *Return*, and SET CONFIRM OFF can be resulting in an "extra" return being issued if the scanned field is filled. If this is not what you intended, it could produce undesirable results.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform