|
<< Click to Display Table of Contents >> Delphi Examples: DbiAppendRecord |
![]() ![]()
|
Append a record to the end of the table associated with the cursor.
Delphi users should use TTable.AppendRecord rather than directly calling dbiAppendRecord. The TTable.AppendRecord method is defined as:
procedure AppendRecord(const Values: array of const);
This statement appends a record to a TTable called Customer. Note that NULL values (using the Pascal nil) are entered for some of the values, but are not required for missing values at the end of the array argument, for example, after the Discount field.
Customer.AppendRecord([CustNoEdit.Text, CoNameEdit.Text, AddrEdit.Text,
nil, nil, nil, nil, nil, nil, DiscountEdit.Text]);