Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getnextmodified() return negative value
Message
From
30/12/2003 11:20:37
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
30/12/2003 11:15:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00862851
Message ID:
00862857
Views:
14
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform