>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)