Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a new line in a grid
Message
From
24/11/2004 14:02:31
 
 
To
24/11/2004 13:41:11
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00964413
Message ID:
00964431
Views:
10
In addition to what David said, if you put the code below in the keypress event of the control in the last column in the grid then focus will move to the first column, next row:
IF (NKEYCODE=13)
	NODEFAULT
	KEYBOARD '{TAB}'
	KEYBOARD '{DNARROW}'
ENDIF
Of course, you will have to allow for a checkbox then...

>In my grid I would like to be able to add a new line when I hit the enter key when the focus is set on the bottom row and right most column. When the enter key is hit a new line is appended to the underlying table in the grid and will be availible for input.
>
>The record source for the grid is a child table with 'set relation'.
>
>Thanks for any help.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform