Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Have ENTER key move cursor down?
Message
 
 
À
11/02/1999 15:50:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00186425
Message ID:
00186791
Vues:
11
>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).
>

The problem with the DownArrow is this. If the field is numeric, and the user clicks in the box, SelectOnEntry is defeated. The user types in a number and hits the downarrow. What the user types and the numbers left over in the box from the previous value are then concatenated. e.g. original valus is 12, the user types 4, the 2 in 12 move off, so you are left with a 4, some spaces and the 1. If the user hits down arrow, you get 41 as the result. If you hit ENTER, you are left with the correct value of 4.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform