ответ -
да есть - функция копирования буфера
CopyTablesFields(#Tab1,#Tab2).
Модераторы: m0p3e, edward_K, Модераторы
это не важно. Просто само как-то приписалось, а-ля мысли вслух.а смысл?
Код: Выделить всё
interface copy_spmnlan; 
var 
oldNrec : comp; //передаю Nrec шапки (Mnplan.nrec) 
newNrec : comp; //и Nrec новой строки MnPlan 
create view 
from spmnplan,spmnplan spmnplanNew
where 
((oldNrec == spmnplan.cmnplan); 
parameters oldNrec,newNrec; 
handleevent 
cmInit:{ 
_loop spmnplan
{
   if getfirst spmnplanNew where ((spmnplan.Nrec==spmnplanNew.Nrec)) = tsOk
  {
     spmnplanNew.nrec:=0; 
     spmnplanNew.cmnplan:=newNrec; 
     insert current spmnplanNew; 
  }
}; 
} 
end; 
end.