>Dear all,
>When i read a barcode , it send a CHR(13) at the end ot returned data.
>so i lost focus and next TextBox get focus.
>How i can delete this CHR(13)?
You can have Fox eat it. In .gotfocus of the textbox
SET CONFIRM ON
and set it off in the .lostfocus, so it would actually require an enter to be pressed. You may need some extra code to NOT set this on when you want the user to type. It's usually done by having a property bound to a chkBarcodeMode checkbox, so
if thisform.lBarcodeMode
set confirm on
endif
would be in textbox.gotfocus, and chkBarcodeMode.controlsource="thisform.lBarcodeMode"