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