procedure TForm6.FileListBox1Change(Sender: TObject);
var
k: integer;
Path2: String;
Name2: String;
begin
for k := 2 to FileListBox1.Items.Count do
begin
//设置文件路径,文件名字
Path2 := FileListBox1.Directory + '\' + FileListBox1.Items.Strings[k - 1];
Name2 := FileListBox1.Items.Strings[k - 1];
with ADOQuery1 do
begin
Close;
SQL.Clear;
SQl.Add('insert into scan(num, load, name) values(:k,:Path2,:Nmae2)');
Execsql;
end;
end;
end;
var
k: integer;
Path2: String;
Name2: String;
begin
for k := 2 to FileListBox1.Items.Count do
begin
//设置文件路径,文件名字
Path2 := FileListBox1.Directory + '\' + FileListBox1.Items.Strings[k - 1];
Name2 := FileListBox1.Items.Strings[k - 1];
with ADOQuery1 do
begin
Close;
SQL.Clear;
SQl.Add('insert into scan(num, load, name) values(:k,:Path2,:Nmae2)');
Execsql;
end;
end;
end;
解决方案 »
- Object转换问题。
- 请教combobox.items问题(ado连access)
- 求ODAC-TOraStoredProc返回带参数的游标的代码。
- 如何使DBGRID中的数字显示分节符?
- Query控件问题
- 怎样对图像的颜色进行调节,如反白,图像的颜色对比之类
- 学好Delphi,用什么书籍最好?
- 我干,AGENTINA完蛋了,我的彩票也完蛋,天啊。。。
- nt中delphi5。0用adoquery怎样控制对空表的操作!!!在线等待!!!!!!!help me
- 这么难!!!谁知道如何直接将webbrowser显示的页面保存为mht格式的文件啊?
- 这个菜单是如何实现的
- 如何动态检测和创建1个索引
SQl.Add('insert into scan(num, load, name) values(:k,:Path2,:Nmae2)');
Parameters.ParamByName('num').Value:=1;
...
Execsql;