public void
copyData(Common _from, Common _to)
{
DictTable dictTable = new
DictTable(_from.TableId);
FieldId fromFieldId = dictTable.fieldNext(0);
fieldId toFIeldid;
DictField dictField;
while (fromFieldId)
{
If(! isSysId(fromFieldId))
{
dictField
= new DictField(dictTable.id(),
fromFieldId);
toFIeldid =
fieldName2id(_to.TableId, fieldId2name(_from.TableId, fromFieldId));
if (toFIeldid)
{
_to.(toFIeldid) = _from.(fromFieldId);
}
}
fromFieldId = dictTable.fieldNext(fromFieldId);
}
}
Nice one but can you please let me know why you have the below statement
ReplyDeletedictField = new DictField(dictTable.id(), fromFieldId);