DtvLong dal_mas_cop_row (id1, ro1, id2, ro2)

Copies the field contents of the records of the source mask into all fields of the records of the target mask having the same name, executes the edit_action-trigger for insert mode, and enters the defined default values for the fields. The copied record is inserted as new record at the specified row position of the target mask

Input Parameters Significance
DtvLong id1 Id of the source mask
DtvLong ro1 source row position
DtvLong id2 Id of the target mask
DtvLong ro2 target row position

Output Parameters Significance
no -

Return Code Significance
0 no error
1 wrong source row position
2 wrong target row position
3 error in the edit_action-trigger for insert mode

The row position of any existing records after the copied record is incremented by one.

Attention! When copying in the same mask the function is applicable only if the target row position is larger than the source row position or the row position of the source data record must be increased by 1. Because in the target data record a record is inserted, in the source data record (same mask) there also a record must be inserted.

The function is basically identical to the function dal_mas_cop_rec. However, the edit_action-triggers for insert mode are executed additionally, the defined default values are automatically entered in the fields, the maximum record limit is not checked, and the scroll area is automatically updated. As opposed to dal_mas_cop_rec a new record is inserted in the target mask.