4D v16.3CREATE RECORD |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
CREATE RECORD
CREATE RECORD
CREATE RECORD creates a new empty record for aTable, but does not display the new record. Use ADD RECORD to create a new record and display it for data entry. CREATE RECORD is used instead of ADD RECORD when data for the record is assigned with the language. The new record becomes the current record but the current selection is left untouched. The record exists in memory only until a SAVE RECORD command is executed for the table. If the current record is changed (for example, by a query) before the record is saved, the new record is lost. Note: This command does not require aTable to be in read/write mode. It can be used even when the table is in read-only mode (see Record Locking). The following example archives records that are over 30 days old. It does does this by creating new records in an archival table. When the archiving is finished, the records that were archived are deleted from the [Accounts] table: ` Find records more than 30 days old
See also
|
PROPERTIES
Product: 4D HISTORY
Created: < 4D v6 ARTICLE USAGE
4D Language Reference ( 4D v16) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||