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

keypress event IN grid-textbox control- nodefault problem

Status
Not open for further replies.

PeriyurParthi

IS-IT--Management
Jul 18, 2001
258
IN
hi
if i use the following code in grids text1.keypress event
its is working perfectly, but the problem is when i use to
press any of the keys, everything is comeing twice, suppose if i press a, its comeing aa or 1 its comeing as 11, may i know what i have made wrong in the below said code.

LPARAMETERS nKeyCode, nShiftAltCtrl
IF nKeyCode = 13 && Enter
KEYBOARD "{DNARROW}" PLAIN
NODEFAULT
RETURN
ENDIF
DODEFAULT(nKeyCode, nShiftAltCtrl)




pls help, thanks
parthi

 
PeriyurParthi

Try:-

LPARAMETERS nKeyCode, nShiftAltCtrl
IF nKeyCode = 13 && Enter
KEYBOARD [{DNARROW}] PLAIN
ENDIF

Chris :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top