Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Barcode use help needed
Message
From
23/04/2007 12:21:53
Reza Meamar
Homa Programming Group
Shiraz, Iran
 
 
To
23/04/2007 07:54:09
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01218807
Message ID:
01218968
Views:
13
>>>>Dear All,
>>>>I have a HandHeld BarCode reader . it is connected to my computer throgh keyboard port.
>>>>How i can read data returned from this device?
>>>>thanks
>>>
>>>In your case the barcode reader is a keyboard! Just start to read barcodes!
>>
>>i made a form with one textbox on it. when i read barcode it cuse hanging my computer!
>
>A barcode reader will as default add a chr(13), which means that if you are in a textbox, the cursor will move to the next taborder object. You may change the behavior of the reader, or "eat" the chr(13) by adding this to your keypress:
>
if nkeycode=13
> nodefault
>endif
Dear Tore,
I changed my reader and now all thing is ok.
I have another question.
I have a textbox on my form, in this textbox user can enter goods code and take some information about it. when i use from Barcode Reader, because it send a CHR(13) code, i lost the focus from my textbox. if i delete chr(13) as you say, how i can enter the goods code in usual mode( without reader ) ?
thanks for your help
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform