发信人: teleme(PassWord)
整理人: huxley(2001-12-17 20:13:49), 站内信件
|
//在你得某个按钮事件中
//选择多条记录进行更改
var
bookmark:tbookmark;
bookmarklist:tbookmarklist;
i:integer;
begin
if query2.RecordCount<1 then abort;
bookmark:=query2.getbookmark;
bookmarklist:=dbgrid2.selectedrows;
for i:=0 to bookmarklist.count-1 do
begin
query2.GotoBookmark(pointer(bookmarklist[i]));
//现在就是你要得记录
end;
query2.freebookmark(bookmark);
end;
//前几天看到了恰好不在办公室。
---- Fire Engine
|
|