Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forms, KeyPress and Grid
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Forms, KeyPress and Grid
Miscellaneous
Thread ID:
00822954
Message ID:
00822954
Views:
43
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
Map
View

Click here to load this message in the networking platform