Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getnextmodified() return values
Message
De
30/10/2001 10:14:52
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
30/10/2001 10:11:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00575036
Message ID:
00575042
Vues:
20
>Hi All,
>Anyone know what a -1 return value from the VFP 7.0 Getnextmodified() function indicates ? Checked MSDN, VFP Help and Hackers - No answer except that it should return 0 or the next modified record number. Also, I have checked buffering properties on the table - set to optomistic (pardon spelling if wrong).
>
>TIA

The help is correct. The next modified record has record# -1. This means that you use buffering, and that you have a new record that isn't commited yet. The first record you add has record# -1, the second, record# -2, etc. When you save the records, they acquire permanent (positive) record numbers.

Hilmar.
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