Chuck,
Sorry, I misread your original post and thought you were doing this from the lostfocus event. In any case, would the following work?
LPARAMETERS nColIndex
IF nColIndex = 5 AND NOT LASTKEY() = 5 AND NOT LASTKEY() = 24
KEYBOARD '{DNARROW}'
ENDIF
Regards,
Jim
>
The problem is that the user does not want to press the down arrow, just have the cursor move to the next record for input BUT...if editing another record the default AllowAddNew behavior makes the cursor jump to the last record and arrow down no matter what record you are on.
>My code is like this in the beforerowcolchange event:
>>* Method..: grdcentrex.beforerowcolchange
>* in the last column (amt) and last keystroke is not "up-arrow"
>* any other key go down
>LPARAMETERS nColIndex
>IF nColIndex = 5 AND LASTKEY()#5
> KEYBOARD '{DNARROW}'
>ENDIF
>
Jim