Query1.Edit不起作用是怎么回事?
用Query控件进行数据更新 Query1.Edit;
(此处数据更新语句);
if Query1.State=dsEdit then
Query1.Post
else
ShowMessage('数据未处于Edit状态');
运行后发现Query1处于非Edit状态。
用Query控件进行数据更新 Query1.Edit;
(此处数据更新语句);
if Query1.State=dsEdit then
Query1.Post
else
ShowMessage('数据未处于Edit状态');
运行后发现Query1处于非Edit状态。
Query控件中Query.Edit好像只对有数据的记录有效。