芭
芭芭拉
Unregistered / Unconfirmed
GUEST, unregistred user!
在clientdataset的oncdsCalcFields事件中这样赋值,是否会将记录的值存到数据库当中,
但在打开clientdataset时并没有执行edit、post。且服务端的query的requestlive为true
procedure TDATA1.QD_DJ_QY2_cdsCalcFields(DataSet: TDataSet);
begin
QD_DJ_QY2_cdsXJ.value:=QD_DJ_QY2_cdsXJ.value*main.sa_xj;
QD_DJ_QY2_cdsYJQ.value:=QD_DJ_QY2_cdsYJQ.value*main.sa_xj;
QD_DJ_QY2_cdsWJQ.value:=QD_DJ_QY2_cdsWJQ.value*main.sa_xj;
end;
//
但在打开clientdataset时并没有执行edit、post。且服务端的query的requestlive为true
procedure TDATA1.QD_DJ_QY2_cdsCalcFields(DataSet: TDataSet);
begin
QD_DJ_QY2_cdsXJ.value:=QD_DJ_QY2_cdsXJ.value*main.sa_xj;
QD_DJ_QY2_cdsYJQ.value:=QD_DJ_QY2_cdsYJQ.value*main.sa_xj;
QD_DJ_QY2_cdsWJQ.value:=QD_DJ_QY2_cdsWJQ.value*main.sa_xj;
end;
//