Try the following:
newTable = originalTable; info(strfmt('%1 %2', newTable.recId, originalTable.recId); newTable.data(originalTable); newTable.insert(); info(strfmt('%1 %2', newTable.recId, originalTable.recId);
You will see that the first statement simply creates another pointer to an existing record. The second creates a new copy of the existing record.
demas source share