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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP 5.0 NEED HELP

Status
Not open for further replies.

ernestop

MIS
Feb 8, 2007
12
US
Hi,
I created a data entry form and would like to allow users to type from the keyboard in some textboxes, but i would like other textboxes in the same form not to allow users to type from the keyboard but they can use an scanner to scan a barcode, i don't want them to type in those textboxes cause they make mistakes but when scanning there is no such a mistake, is there anyway to disable the keyboard for the textboxes i want ?

The other issue i have is that each textboxes have a valid event but if the users decide to close the form before finishing that whole data entry screen, they can not close the form cause each of the texboxes are not filled with data, then they will get the message i put in the valid event for that texbox that can not be empty and of course the user have to fill all the texboxes in order to delete the record or to close it , can you help me out here what should i do to fix it and in what property i should put the code ?
Thanks
 
These sound like they are really FoxPro questions. I guess the first question is did you write this screen in Fox?

As to the scanner issue, create a temporary table which the data is scanned into and then use label controls to display the data. Use the temporary table to update the permanent table.

I've usually had the reverse problem re early exit, but if you want to just abort should be able to set up a flag for that and use the destroy event to handle the problem.

If you don't understand what I'm saying you should probably get professional help with building the screen. Either that or figure 2 or 3 months learning VFP if it is a second language for you and a good year if it the first programming language you've used.

Bill Couture
http:\\
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top