Append
APPEND lets you add individual records to a table, either interactively or behind the scenes. It's also first cousin to the APPEND FROM and APPEND FROM ARRAY commands, which add batches of records. They're discussed elsewhere.
Usage |
APPEND [ BLANK ] [ IN nWorkArea | cAlias ] [ NOMENU ] |
VFP 7 Service Pack 1 fixes a relatively obscure bug in earlier versions (we didn't even know it existed until Microsoft told us they fixed it): You no longer get an Internal Consistency Error when you append records to a buffered table when one of the indexes consists of very short keys (that is, the index is on a small field) and every one is identical (we told you it was obscure!). |
Example |
USE TestData APPEND && Now add data interactively * This code might appear in the Click event of a Save button * for a data entry screen that's in "continuous add" mode = TABLEUPDATE() APPEND BLANK ThisForm.Refresh() |
See Also |