Skip to main content

Posts

Showing posts with the label Copying

X++ Code Snippet: Copying records

static void CopyFields(Common _from, Common _to) {      DictTable           t;     DictField           f;     int                  i;      fieldId             id;     FieldName           fieldname;      ;     t = new DictTable(_to.TableId);     if (t)     {         for (i= 1 ; i<=t.fieldCnt(); i++)         {             id = t.fieldCnt2Id(i);             f  = new D...