>>Hi all,
>>
>>What's the way i know, that i'm in the last row or cell in grid.
>>
>>Thank's
>>
>>João Batista
>
>from the grid's source cursor, e.g.
>
Function IsOnLastRow()
> select myGridSourceCursor
> Skip
> llOnLastRow=EOF()
> Skip -1
> Return llOnLastRow
>EndFunc
>
Hi Trey,
This solution would work in many cases. It might fail, ie: grid recordsource is a child and skipping simply might skip to another record where it's not eof() (foreign key value changes and you might utilize it) though you were on last row. With a parent-child situation "set key to foreignkey" and skip, then it would have eof() if you were on last row.
There is no practical way I know of. Depending on need solutions might exist (what's intended, buffered or not, pointer movement is a problem or not etc).
Cetin