S
spits
Unregistered / Unconfirmed
GUEST, unregistred user!
用TClientDataset删除记录,代码如下:
Su_Id:=FRm_DataBuy.ClientDataSetSupp.fieldbyname('Su_Id').asstring;
FRm_DataBuy.ClientDataSetSupp.close;
FRm_DataBuy.ClientDataSetSupp.CommandText:=Format(' delete from SUPPLIER WHERE SU_ID=%S ',[''''+sU_ID+'''']);
FRm_DataBuy.ClientDataSetSupp.Execute;
记录是删除了,但TDBGRid的记录全部不见了,只能重新启动,记录才显示出来,在三层架
构中有没有像Tquery.delete的命令.
Su_Id:=FRm_DataBuy.ClientDataSetSupp.fieldbyname('Su_Id').asstring;
FRm_DataBuy.ClientDataSetSupp.close;
FRm_DataBuy.ClientDataSetSupp.CommandText:=Format(' delete from SUPPLIER WHERE SU_ID=%S ',[''''+sU_ID+'''']);
FRm_DataBuy.ClientDataSetSupp.Execute;
记录是删除了,但TDBGRid的记录全部不见了,只能重新启动,记录才显示出来,在三层架
构中有没有像Tquery.delete的命令.