S
shermanxie
Unregistered / Unconfirmed
GUEST, unregistred user!
使用MAST-DETAIL表,MAST 为 TQUERY,DETAIL为TTABLE,
MAST AFTER POST 中更新数据库
WITH QUERY DO
BEGIN
DataBase.StartTransaction;
try
ApplyUpdates; {try to write the updates to the database};
DataBase.Commit; {on success, commit the changes};
except
DataBase.Rollback; {on failure, undo the changes};
end;
CommitUpdates; {on success, clear the cache}
END
程序出错,
在QUERY BEFORE CLOSE 中使用以上程序,不出错,
请各位大虾多多帮忙
100 大元哪!!
MAST AFTER POST 中更新数据库
WITH QUERY DO
BEGIN
DataBase.StartTransaction;
try
ApplyUpdates; {try to write the updates to the database};
DataBase.Commit; {on success, commit the changes};
except
DataBase.Rollback; {on failure, undo the changes};
end;
CommitUpdates; {on success, clear the cache}
END
程序出错,
在QUERY BEFORE CLOSE 中使用以上程序,不出错,
请各位大虾多多帮忙
100 大元哪!!