Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting records from a grid
Message
From
26/11/2004 08:58:59
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00964894
Message ID:
00964897
Views:
8
Hello,

if you turn grid's "AllowCellSelection" property to .F. you can use the Grid's KeyPress event

keypress event
lparamters nKeyCode, nShiftAltCtrl
IF nKeyCode = 13 && Enter key
THISFORM.retVal = yourCursor.yourKey
THISFORM.Release()
ENDIF

Form's Unload event
RETURN THIS.retVal


assuming your Form is a modal one.

Regards
Christian
Previous
Reply
Map
View

Click here to load this message in the networking platform