Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
From barcode scanner to table field
Message
From
12/02/2011 13:43:28
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01499921
Message ID:
01499932
Views:
39
Yes, it's really only "plug and play". But be aware that you probably must program the scanner to match the keyboard layout of your choice. The scanner decodes the bar code and sends a stream of "scan codes" to your computer, just like a keyboard sends scan codes to your computer. But some characters, like - and % have different positions on the keyboard in different countries, and that's why you must program the keyboard to your own keyboard layout.

>Thank you Tore
>
>It was much easier simple than I thought
>
>Moises
>
>
>
>
>
>
>
>>Moises,
>>
>>it's so much easier than you think. Think of a bar code scanner as a keyboard, because to all your software it is just that, a second keyboard.
>>
>>In addition most bar code scanner can be programmed to insert one or more characters of your choice before and/or after the scanned text. This means that it is possible to determine whether the input comes from the keyboard or from the scanner, if these extra characters are enabled.
>>
>>>Hi
>>>
>>>I never used bar code scanner before.
>>>
>>>( the first bar code I built was for post mail scanner tracking machine)
>>>
>>>Now am considering have one for my use and I have two questions:
>>>
>>> 1- Will the code go direct to the a table field the same way as I was typing a keyboard ?
>>>
>>> 2- Is there way to automate as below ?
>>>
>>> loca for table.id = my_read_value_from_code_bar
>>>
>>>I wonder if the scanner send some command after bar was read and if vfp can detect if directly.
>>>
>>>
>>>Moises
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform