>Could you please help? I'm trying to find why/when getnextmodified() return negative value? Help doesn't mentioned it...
GetNextModified returns the value that corresponds to recno().
If you use buffering, a new record, not yet committed with TableUpdate(), will have a negative value. If you add several records (with table buffering), the first record will have a recno() of -1, the second -2, etc.
As soon as you TableUpdate() the records successfully, they will obtain their permanent recno()s, according to their position in the table.
>
>I use something like:
>
>use table alias aaa
>select * from aaa into cursor tempcur readwrite
>set multilock on
>= cursorsetprop('Buffering',5,'tempcur')
>go 2
>replace field with 999
>go top
>? getnextmodified() && returns -1...
>
>
>TIA
>Dmitry
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)