General information
Category:
Forms & Form designer
Title:
Forms, KeyPress and Grid
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only