Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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.
It looks to me like you need an ELSE DODEFAULT() in the first IF to have it process the other keys.
Chris.
Précédent
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