Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving to a new line in a grid
Message
From
24/05/2006 14:41:29
 
 
To
22/05/2006 10:17:40
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01123931
Message ID:
01124638
Views:
8
Put this code in KeyPress of Grid column may be last column of Grid
if nKeyCode = 13 && Enter Key is Pressed
   local nRec,;
       cKeyNo
*
   select tbl && Record source table of Grid
   cKeyNo = tbl.key_no
   skip
   nRec = recno()
   if eof() or tbl.key_no != cKeyNo
      skip -1
      nRec = recno()
   endif
   thisform.grid1.column1.setfocus()
   select tbl
   go nRec
*
   nodefault
endif
Previous
Reply
Map
View

Click here to load this message in the networking platform