Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Double clicking and Keypress Events on Grids
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Double clicking and Keypress Events on Grids
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01035051
Message ID:
01035051
Views:
64
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'&& Enter key
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'&& Enter key
	SELECT testsum
	SEEK UPPER(mycursor.labref)
ENDIF

THISFORM.Release()
thconsole.pageframe1.page2.refresh
Neil Lewis
IT R&D Manager
Velmore Ltd
Next
Reply
Map
View

Click here to load this message in the networking platform