Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement