I have a grid on a form which is bound to a cursor which is READONLY. In the doubleclick event and Keypress event I have the same code. The problem I have is if the Allcellselection peoperty is set to T both events do not work. If I have it set to F then the double click works but when I use the down arrow as soon as the record pointer moves the form/grid is released.
I basically want to carry out my code if the user presses enter on the record or double clicks. Any help would be appreciated.
IF nKeyCode = 13 AND lcsearch='Article'
SELECT testsum
replace artikey WITH mycursor.artikey, descrip1 WITH mycursor.descrip1, seamslippa WITH mycursor.seamslippa, ardelivery WITH mycursor.ardelivery, acomp WITH mycursor.acomp
ENDIF
IF nKeyCode = 13 AND lcsearch='Test Result'
SELECT testsum
SEEK UPPER(mycursor.labref)
ENDIF
THISFORM.Release()
thconsole.pageframe1.page2.refresh
Neil Lewis
IT R&D Manager
Velmore Ltd