Cursor does not return to search box after selecting with barcode reader
Cursor does not return to search box after selecting with barcode reader
(OP)
Blessings to all.
I have a search box that manually reads and insert items into a grid. After doing this, the setfocus is return to the search box.
But the cursor stays in the grid if thd item is found with a barcode reader.
What should I do in order to obtain the same result when searching manually?
I have a search box that manually reads and insert items into a grid. After doing this, the setfocus is return to the search box.
But the cursor stays in the grid if thd item is found with a barcode reader.
What should I do in order to obtain the same result when searching manually?
RE: Cursor does not return to search box after selecting with barcode reader
So you may need to add code to set the focus specifically to that text box.
Something like
... some code to scan with a barcode scanner...
ThisForm.TextField.Setfocus()
Best Regards,
Scott
MSc ISM, MIET, MASHRAE, CDCAP, CDCP, CDCS, CDCE, CTDC, CTIA, ATS, ATD
"I try to be nice, but sometimes my mouth doesn't cooperate."
RE: Cursor does not return to search box after selecting with barcode reader
Once you have identified a suitable event, that's where you would put the SetFocus.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips and downloads
RE: Cursor does not return to search box after selecting with barcode reader
Mike is right, that event tracking will tell you which events occur.
Chriss
RE: Cursor does not return to search box after selecting with barcode reader
Greg