Recent

Author Topic: automatically insert into DBGrid from barcode reader  (Read 4328 times)

fcodebue

  • Newbie
  • Posts: 6
automatically insert into DBGrid from barcode reader
« on: October 14, 2009, 03:57:46 pm »
I use aDBGrid connect to dbf file into my barcode mobile reader with arm processor.
I wanna that every time I read a barcode it insert it into my first column cell.
Problem is that first I have to go into edit mode of the cell, with pressing enter, before I can write something into it.
Is there some property to automate insert?

codebue fabio
gestionaleopen
------------------
codebue fabio
gestionaleopen

fcodebue

  • Newbie
  • Posts: 6
Re: automatically insert into DBGrid from barcode reader
« Reply #1 on: October 14, 2009, 05:54:30 pm »
I use aDBGrid connect to dbf file into my barcode mobile reader with arm processor.
I wanna that every time I read a barcode it insert it into my first column cell.
Problem is that first I have to go into edit mode of the cell, with pressing enter, before I can write something into it.
Is there some property to automate insert?

codebue fabio
gestionaleopen

It's enough to set these properties

AutoAdvance = aaDown
dgAlwaysShowEditor:= true
------------------
codebue fabio
gestionaleopen

cdbc

  • Hero Member
  • *****
  • Posts: 1083
    • http://www.cdbc.dk
Re: automatically insert into DBGrid from barcode reader
« Reply #2 on: October 14, 2009, 07:04:49 pm »
Hi Fabio.

Look at it this way: Visual controls follow the dataset. Make the change on the dataset.

regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

 

TinyPortal © 2005-2018