Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forms, KeyPress and Grid
Message
From
25/08/2003 10:40:34
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00822954
Message ID:
00823047
Views:
17
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform