General information
Category:
Forms & Form designer
>RECCOUNT() moves table pointer. So you must save RECNO() before RECCOUNT() and use it later on to GO back, restoring ActiveRow.
Thanks Edward. I changed the code to the following, and it moves to the next row as desired, however, I still have two problems:
1. The cursor moves to the next row, but NOT to the first column. It moves to the first visible column, but not the first column in the grid (when tabbing to the last column, the grid scrolls so the first four columns aren't visible. Shouldn't ActivateCell(1,1) move to the first column regardless?
2. The code moves the pointer to the next row, but the row indicator (or whaterver the right pointing triangle at the left of the grid is called) appears twice! Also, the previous cell remains highlighted!
NODEFAULT
lCurrentRecord=RECNO("cashlist_hli_param_view")
lTotalRecords=RECCOUNT("cashlist_hli_param_view")
IF lCurrentRecord = lTotalRecords
Thisform.grdCashList.ActivateCell(1,1)
ELSE
Thisform.grdCashList.ActivateCell(lCurrentRecord+1,1)
ENDIF
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only