How to Determine Which Key the User Pressed in a GridID: Q133243 The information in this article applies to:
SUMMARYThis article shows by example how to determine if the user pressed the UP ARROW key while the pointer was on the first record of the grid or pressed the DOWN ARROW key while the pointer was on the last record of the grid.
MORE INFORMATION
Step-by-Step Example1. Open a table, and create a new form. 2. Create a new form property called FirstRecord. 3. Add a grid to the form. 4. In the grid's Init event, add this line of code:
5. In the grid's AfterRowColChange event, add this code:
6. Save and run form.
NOTE: If add complexity, such as filtering the table or changing the index order of the table after the grid's Init event fires, this example will not work. You will need to change the example to accommodate the additional complexity. Additional reference words: 3.00 VFoxWin KBCategory: kbui kbprg kbcode KBSubcategory: FxotherGeneral |
Last Reviewed: July 27, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |