Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forms, KeyPress and Grid
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Forms, KeyPress and Grid
Divers
Thread ID:
00822954
Message ID:
00822954
Vues:
44
I have two forms Customers (Top Level Form) and items (In-Top Level Form). With the customer form is just a grid with the customer information display by pressing the {F10} key you will bring up the items form that has the items that the customers have purchased. Where I have a field on the grid which the user can change the data.

I have added the following code to the items grid to field Keypress so that the use can use the enter key to move down the grid.

IF NLIST(nKeyCode, 10, 13) THEN
SKIP 1
IF EOF() THEN
GO BOTTOM
ENDIF
ENDIF

All works fine when I work with the forms by there self, but when I call the items form from inside the customers form. The only thing that works is the Enter key. I have added the following code to the KeyPress method on the Grid TextBox MESSAGEBOX([nKeyCode = ], TRANSFORM(nKeyCode, [999])) and this brings back the correct nKeyCode I am looking for, but the grid textbox does not change.

Thanks for the Help

Rex Walters
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform