Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GETNEXTMODIFIED Problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01264489
Message ID:
01264496
Views:
13
Ok. I see. So the -1 is the recno() of the new record. Strange that the help for GETNEXTMODIFIED() doesn't mention that.

Thanks Jim.





>>I deleted one record, modified one record, and inserted one record.
>>
>>GETNEXTMODIFIED() returns the record number of the deleted record, then the record number of the
>>modified record, but then returns -1.
>>
>>I don't see any mention of -1 in the help for GETNEXTMODIFIED(). Anyone know what's going on here?
>>
>>Also, as a test, I opened the table in the command window, turned on table buffering, did an APPEND BLANK, and GETNEXTMODIFIED() returns 0.
>>
>>What's up with this?
>>
>Here's an excerpt from VFP9's Help for "How to: Append and Delete Records in Table Buffers":
>You can append and delete records while table buffering is enabled: appended records are added to the end of the buffer. To access all records in the buffer, including appended records, use the RECNO( ) Function. The RECNO( ) function returns sequential negative numbers on records you append to a table buffer. For instance, if you initiate table buffering, edit records 7, 8, and 9, and then append three records, the buffer will contain RECNO( ) values of 7, 8, 9, – 1, – 2, and – 3.
>
>cheers
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Reply
Map
View

Click here to load this message in the networking platform