Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Positioning onto another row in a grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01085643
Message ID:
01085684
Views:
16
I have a grid where the user tabs thru the row, the last column bumps them down a row... but the first column is not a combo. Not sure if its an issue. The last column in the grid contains a command button. This code is in the keypress method of the command button:
LPARAMETERS nKeyCode, nShiftAltCtrl
*---
*--- this will move the record pointer to the next row, and
*---   position the cursor in the first column.
*---
*---  FYI - the adding of the blank row after leaving the
*---        last line in the grid takes place in the VALID 
*---        of the textbox in column 1
IF m.nKeyCode=9 ;
THEN 
	KEYBOARD '{DNARROW}' PLAIN CLEAR 
ENDIF 
>Hi! I have a grid, this is an invoice body.
>
>When the user tabs past the last column in my grid, my method works out wether to add a new record or just set the focus on the next line of my grid in the first column. The first column of the grid is a combobox.
>
>I achieved this by filling the keyboard buffer with an arrow down.
>
>The first column must now be a combo list, so filling the keyboard buffer with arrow down now changes the combo selection, and no longer moves the current row down one. How can I set the row of the grid?
>
>Any ideas?
>
>Any help extremley apreciated
Previous
Reply
Map
View

Click here to load this message in the networking platform