Simon:
Make sure that you have _VFP.AutoYield = .F.
Setting AutoYield to false (.F.) prevents events for an ActiveX control from executing between lines of user program code. This may be your problem.
--Paul
>I am trying to write an app which uses serial barcode input as opposed to keyboard wedge input. The problem which i have is that the data is received from the scanner and is buffered, so when loaded into a variable, sometimes not all of the barcode string is read in, causing a validation error. Does anyone know how to reliably wait for the reader to finish, bearing in mind there is no stop digit and the barcodes are variable length?