Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic event firing

Status
Not open for further replies.

mensud

Programmer
Jul 22, 2001
51
US
Hi,
I have really strange problem.
I am working with two forms and barcode reader which I use instead of keyboard.
The scenario is next.
On the first form I have one edit field which is populated with value that barcode reader reads. After this field is populated, the second form is opened. On this form I have one grid, and one button "Cut". By press "Cut" button, the data in grid are changed. But for some reason, whenever this second form is opened, the data in table are changed itself, before I press "Cut" button. I want this button to have focus when form is displyed, but I don't want the data to be changed unless I press button.
I tried with a lot of events, and I don't have any more ideas.

Thanks
 
HI

It is likely that an extra CHR(13) or CHR(9) or whatever to give the effect of pressing the button is passed on by the BarCode.

To clear this, I suggest..
In the secoond form, where yoy found to retain the focus...
In that controld got focus event, put the code..

CLEAR TYPEAHEAD

That will solve the problem.
:)

ramani :)
(Subramanian.G)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top