Skip to content

cDataTable.NewRecord

Brendon edited this page Mar 17, 2024 · 1 revision

NewRecord

returns cRecord

Use this method to add further records to a cDataTable that already has at least 1 record. This method will not successfully add a record to a cDataTable that has no records. For that you should use cDataTable.AddRecord. NewRecord will check to make sure there are existing records and if there are then it will check to see if there is a default record. If there is a default a record then that will be copied and used as the new record, otherwise the current record will have a new version of itself created.

The ID of the new record will be assigned the next sequential ID in the cDataTable. The new record becomes the current record and the BOF and EOF markers are set to false

See also: cDataTable.AddRecord, cDataTable.BOF, cDataTable.EOF, cDataTable

Clone this wiki locally