Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Want to lock keyboard
Message
From
12/11/2008 10:15:32
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01361245
Message ID:
01361343
Views:
15
IMO, it's a bad idea. I've seen times when the barcode couldn't be read and the operator had to manually key in the code.

>Hi to all
>I want to lock the key board on a form and use the barcode scanner for input i write the key press procedure
>DO case
>CASE nkeycode=27
>thisform.release()
>CASE nkeycode=5
>MESSAGEBOX("Key boardnot allowed",16,"Validation Error")
>thisform.text1.Value=""
>thisform.Refresh()
>RETURN
>CASE nkeycode equal to greater than 48 AND nkeycode equal to lesser than 123
>MESSAGEBOX("Key boardnot allowed",16,"Validation Error")
>thisform.text1.Value=""
>thisform.Refresh()
>RETURN
>ENDCASE
>
>these command also lock the bar code scanner
>
>any suggestion form you.
>
>thanks
>
>Rashid Mehmood
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform