W
wood993903
Unregistered / Unconfirmed
GUEST, unregistred user!
if tbStock.Locate('fdlPrdtID;fdlWhID',VarArrayOf([PrdtID,WhID]),[]) then begin<br> vQty := tbStock.FieldByName('fdnQty').AsFloat;<br> tbStock.Edit;<br> GetQtyABCD(PrdtID,vQty,vQtyA,vQtyB,vQtyC,vQtyD,CustID);<br> tbStock.FieldByName('fdnQtyA').asFloat := vQtyA;//执行到这里的时候就报错,提示fdnQtyA can't be modified<br> tbStock.FieldByName('fdnQtyB').asFloat := vQtyB;<br> tbStock.FieldByName('fdnQtyC').asFloat := vQtyC;<br> tbStock.FieldByName('fdnQtyD').asFloat := vQtyD;<br> tbStock.Post;<br> end;