Database.InsertRecord
From Xojo Documentation
This item was deprecated in version 2019r2. Please use Database.AddRow as a replacement. |
Method
Database.InsertRecord(TableName as String,Data as DatabaseRecord)
Supported for all project types and targets.
Supported for all project types and targets.
Inserts Data (a populated DatabaseRecord) as a new row in TableName.
Notes
Always check the Error property to verity that the data was added.
Sample Code
This code adds a row to an existing Team table with the columns "Name", "Coach" and "City":