Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getnextmodified() return values
Message
From
30/10/2001 10:14:52
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
30/10/2001 10:11:24
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00575036
Message ID:
00575042
Views:
19
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform