B
bitzxs
Unregistered / Unconfirmed
GUEST, unregistred user!
程序如下:
QueryStr:='INSERT INTO CostAnalyse(iProject,iContractID,iTenderID,iContractItem,fWholePrice,fInstall,fForest,fManQuantity)';
QueryStr:=QueryStr+' VALUESProID,:ConID,:TenID,:ConItemID,:WholePrice,:Install,:Forest,:ManQuantity)';
UpdateSQL1.InsertSQL.Add(QueryStr);
QueryCostAnalyse.UpDateObject:=UpDateSql1;
with QueryCostAnalyse do
begin
ParamByName('ProID').asInteger:=ProjectID;
ParamByName('ConID').asInteger:=ContractID;
ParamByName('TenID').asInteger:=TenderID;
ParamByName('WholePrice').asFloat:=21;
ParamByName('Install').asFloat:=33;
ParamByName('Forest').asFloat:=33;
ParamByName('ManQuantity').asFloat:=33;
ApplyUpdates;
end;
但错误提示为:Param'WholePrice'not find,请问这是什么原因???
QueryStr:='INSERT INTO CostAnalyse(iProject,iContractID,iTenderID,iContractItem,fWholePrice,fInstall,fForest,fManQuantity)';
QueryStr:=QueryStr+' VALUESProID,:ConID,:TenID,:ConItemID,:WholePrice,:Install,:Forest,:ManQuantity)';
UpdateSQL1.InsertSQL.Add(QueryStr);
QueryCostAnalyse.UpDateObject:=UpDateSql1;
with QueryCostAnalyse do
begin
ParamByName('ProID').asInteger:=ProjectID;
ParamByName('ConID').asInteger:=ContractID;
ParamByName('TenID').asInteger:=TenderID;
ParamByName('WholePrice').asFloat:=21;
ParamByName('Install').asFloat:=33;
ParamByName('Forest').asFloat:=33;
ParamByName('ManQuantity').asFloat:=33;
ApplyUpdates;
end;
但错误提示为:Param'WholePrice'not find,请问这是什么原因???