Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Skipping over columns in grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00234003
Message ID:
00234007
Vues:
23
>The first column in my grid is vendor number. If the user enters an existing vendor I would like to skip the next two columns and move immediatetly to the date field. I have tried several things but the cursor move the the next column forcing the user the press the enter key two extra times.

It depends some on how you want to move them...for just the enter key, you could put code like:
if nkeycode = 13     && Enter key was pressed
  nodefault
  this.parent.parent.columnX.setfocus    && X is whatever column
endif
in the textbox Keypress event
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform