Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getnextmodified() return negative value
Message
De
30/12/2003 11:20:37
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
30/12/2003 11:15:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00862851
Message ID:
00862857
Vues:
13
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform