Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>I'm using VFP6 form designer and have a grid control bound to a DBF and would like the user to enter values into, lets say colomn 4 of 6, and when the hit enter move to next ROW.
>Any help would help would be appreciated.
If I read you correctly, you start off in row x, col y. When you press Enter (assuming this does not fire off any default buttons on your form), you want to go to row x+1, but stay in column y.
Unless this is a must-have, deal-breaking, yes-I-know-it's-not-Windows-standard-but-I-don't-care requirement by your client, teaching them to hit the down arrow instead of Enter will probably be your best bet. That is, until FoxPro gives us real X and Y references for our row and columns. In that case, you could simply do something to the effect of:
CurrentCell = CellXY(CurrentRow + 1, CurrentCol).
KISS (Keep it Simple Software),
Bill
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement