for i:=1 to 10 do
begin
table1.append;
table1.fieldByname('a').AsString :=
(FindComponent('Edit'+IntToStr(i)) as TEdit).text;
table1.post;
end;
begin
table1.append;
table1.fieldByname('a').AsString :=
(FindComponent('Edit'+IntToStr(i)) as TEdit).text;
table1.post;
end;
解决方案 »
- 有关aoquery的curvalue和newvalue的问题
- delphi + sql2k怎么防止同时对一个表的同一记录 更新
- 超严重问题啊。
- 这样定义是不是有错呀?
- 帮我翻译一下
- TreeView 和 StringGrid 的问题!(十万火急,在线等待!)
- word转化成string用哪个函数,用wordtostr不行啊?
- IdCoderMD5控件的用法?
- 位图快速黑白化Bitmap.PixelFormat:=pf1bit ...
- Delphi 5 的补丁需要注册码。。help me ~~~~~help me ~~~~~help me ~~~~~help me ~~~~~help me ~~~~~help me ~~~~~
- 特急!
- treeview 控件如何代码加ITEM, 及 给Item加Item, 我找不到函数和帮助
FindComponent是什么意思,sorry,这台机器里暂时没有Delphi
table1.append;
for i:=1 to 10 do
table1.fields[i].AsString :=
(FindComponent('Edit'+IntToStr(i)) as TEdit).text;
table1.post;