| 
	
		| Subject | Re: Entryfield does not recognise the Enter Key |  
		| From | Michael <michael@abstractservices.com.au> |  
		| Date | Mon, 30 Jan 2023 00:51:30 -0500 |  
		| Newsgroups | dbase.getting-started |  | Hi Lee,
 
 I believe you are on the right track, I remember reading somewhere about a bug on the entryfield object. It doesnt matter whether CUAENTER is on or off, it simply is not picking up the char parameter with a value if enter is pressed. Worked perfectly with visual Dbase 7.5 but something sets it off in Dbase 11 which is what I use.
 
 Even a very simple form with just a table and entryfield to onclick a pushbutton once a barcode is scanned or even if enter is pressed on a keyboard it still doesnt work. Can you confirm if this is the problem with Dbase 11?
 
 Thank you,
 
 Michael.
 
 Lee Grant Wrote:
 
 > Michael,
 >
 > Cuaenter needs to be on, if you want it to behave like an Enter key.
 > The moving to the next field is Cuaenter = off, which is why it's acting
 > like a tab key instead.
 >
 > Since you don't mention your version etc, there is very little to go on,
 > as I remember someone mentioning some earlier version may have had an
 > issue, but since you don't mention that it's anyone's guess.
 >
 > Lee
 >
 > On 1/25/2023 6:07 PM, Michael wrote:
 > > Hi Guys,
 > >
 > > I have an unusual problem. I have an entryfield that for some reason wont recognise the enter key.
 > >
 > > If CUAENTER is off then pressing enter jumps to the next field. In either case enter is not recognised in the nchar value of the entryfield key method.
 > >
 > > It use to be, i use it when reading barcodes then searching a database. once it hit the chr(13) character it would automatically oclick a pushbutton that would then search the database.
 > >
 > > For example
 > >
 > >     function ENTRYFIELD1_key(nChar, nPosition,bShift,bControl)
 > >
 > >         If nChar = 13
 > >                     FORM.PUSHBUTTON1.ONCLICK()
 > >         ENDIF
 > >
 > >        return
 > >
 > > However for the life of me it simply wont pick up the nChar value when it used to or am i missing something?
 > >
 > > Anyone have this problem in the past?
 > >
 > > Michael.
 >
 
 
 
 |  |