Z
zhaoxuncai
Unregistered / Unconfirmed
GUEST, unregistred user!
b/s系統中用socket 連接,使用adoquery
當我在保存時用:
datamol.cdcustomer.Post;//adoquery
datamol.cdcustomer.ApplyUpdates(-1);
轉到另一個界面卻無法找到剛剛輸入的記錄資料.
datamol.ClientDataSet1.Close;
datamol.ClientDataSet1.CommandText:='select * from customer order by cust_no';
datamol.ClientDataSet1.Open;
datamol.ClientDataSet1.First;
while not datamol.ClientDataSet1.eof do
begin
combobox1.Items.Add(datamol.ClientDataSet1.fieldbyname('cust_no').asstring);
datamol.ClientDataSet1.Next;
end;
請問是為什么?
當我在保存時用:
datamol.cdcustomer.Post;//adoquery
datamol.cdcustomer.ApplyUpdates(-1);
轉到另一個界面卻無法找到剛剛輸入的記錄資料.
datamol.ClientDataSet1.Close;
datamol.ClientDataSet1.CommandText:='select * from customer order by cust_no';
datamol.ClientDataSet1.Open;
datamol.ClientDataSet1.First;
while not datamol.ClientDataSet1.eof do
begin
combobox1.Items.Add(datamol.ClientDataSet1.fieldbyname('cust_no').asstring);
datamol.ClientDataSet1.Next;
end;
請問是為什么?