Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement