Hi Jeff,
>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
Try to do it manipulating the table instead of the grid:
NODEFAULT
Thisform.grdCashList.column1.setfocus()
SKIP 1
IF EOF() THEN
GOTO TOP
ENDIF
Seems like changing the active row doesn't move the record pointer,
so things become a mess :).
HTH,
J. Luis
J. Luis Santiago Rodríguez.• CADIS • E-mail: jlsantiago@iserve.net.mx• Ciudad de México.