Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a new line in a grid
Message
De
24/11/2004 14:02:31
 
 
À
24/11/2004 13:41:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00964413
Message ID:
00964431
Vues:
9
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"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform