Board index » delphi » Duplicating a TTable record
Steve Koterski (Borland)
![]() Delphi Developer |
Mon, 14 Jan 2002 03:00:00 GMT
Duplicating a TTable record
On Fri, 30 Jul 1999 07:56:26 +1000, "Scott Muller"
Quote<smul...@netconnect.com.au> wrote: second one to point to the same record as is current in the first. Then, in a loop, traverse the fields in the dataset (such as by iterating through the Fields property or the TFieldDef objects in the FieldDefs property). For each field, call the TField.Assign method to assign the value for the field in the first dataset to the same field in the target dataset. For example: for i := 0 to (Table1.FieldCount - 1) do ========================================================================== |