Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot Check the Price
Message
 
To
09/11/2005 11:57:13
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Network:
Novell 4.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01066827
Message ID:
01067534
Views:
12
*** Quote ***

Hi,

I am facing an another irritating issue. The thing is on a simple form I place four fields in this sequence: Barcode, Item Code, Item Description
and Selling Price and three buttons 1. Next, 2. Change Price and 3. Exit.

When I use barcode scanner to determine the selling price, it displays the result but it does not stop and goes back to barcode field.

It is very strange that the same form works perfectly when I call this form from another form, but when I call this form directly means from menu or Top level form it works like that which I described above.

Please suggest me what wrong with this.

*** End Quote***

You just want to position back the cursor to your Barcode text box, am I right? If so, just place a small code to the next control that got the focus after a successful search scan. e.g. if the next control in focus is item code then put something on the gotfocus procedure like thisform.txtbarcode.setfocus()

Normally if you scan an item using barcode scanner, the cursor will move to next control. I have a POS app and as for my case, I haven't make it stay on the barcode " field" when scanning, unless i put a code after the search "Return 0"....

Your approach might be different with mine, but if you just want to put back the focus on your barcode field, look on setfocus and gotfocus..
Jojo R. dela Cuesta, B.Sc.
eConsultant, Programmer
Dalplus Technologies
http://www.dalplus.com
Previous
Reply
Map
View

Click here to load this message in the networking platform