procedure TBaseNumOpeForm.SpeedButton9Click(Sender: TObject);
var
i:integer;
begin
with DataModule1.Table1 do
begin
for i:=1 to RecordCount+1 do
begin
RecNo := i;
Edit;
Fields[0].AsInteger := i;end;
Post;
end;
end;
end;
var
i:integer;
begin
with DataModule1.Table1 do
begin
for i:=1 to RecordCount+1 do
begin
RecNo := i;
Edit;
Fields[0].AsInteger := i;end;
Post;
end;
end;
end;
解决方案 »
- 100e英语听说训练平台--效果实现
- DBMemo、DBComboBox植入DBGrid的Cell在实际运用过程中的问题?
- 如何操作?
- 状态栏的简单问题(在线等)
- @@@@@TAction是干什么的?@@@@@
- 请教高手“COM+组件的初始化问题”
- 小第紧急求救,高手救我!简单的SQL语句,救命!!!
- 为什么会有108的信誉分,谁能解释一下
- 大家帮帮我啊,谢谢啦,我的分都发光了,没分也有朋友对吗?
- 用DELPHI做的程序,如果不做特别处理,启动后,不关闭,然后在“开始”菜单里重起计算机,发现该delphi程序不能自动关闭,从而windows也无法重起。请问,我怎样使程序自动关闭呢?
- dddddddddd
- 图形压缩软件 RAW
Edit;
First;这一段应该先First然后Edit,for i:=1 to RecordCount+1 do
begin
Fields[0].AsInteger:=i;
Next; <<<<<<<<------------在每个Next后面都应该有个Edit
end;
button1.action:action1; button1.onclick:<无 or action1execute>--此时调用action1execute
button1.action:action1; button1.onclick:button1click--此时调用button1click
另:你的用来refresh的action是否tdatasetrefresh?是的话,只要你重写此action的onexecute,此action的缺省功能就失效了