I think it should be
ADOCommand.Parameters[0].Value := ZuShuDateP.DateTime;Because the index of Parameter always starts with 0.
ADOCommand.Parameters[0].Value := ZuShuDateP.DateTime;Because the index of Parameter always starts with 0.
解决方案 »
- 使用TIdHTTP(indy)的get函数获取asp网页内容时,如果URL中有中文参数,无法获取内容,为什么?
- 新手问题---delphi函数的递归调用
- 程序中如何屏蔽 alt+F4? 另外,如何将Tbitbutton和Tpanel设置为透明?
- 關於DLL調用的問題!
- 在Insert数据之后,有时可以insert,有时不可以Insert,出现ClientDateSet:Must Apply Updates Before Refreshing Date.
- fibplus 到底是不是免费的?
- ★intraweb中如何实现多个文件选择后一起上传???而不是选一个发一个比较费劲
- 在PB中有数据管道用来连接多个数据库,请问在DELPHI中是否有类似的功能?
- 我在制作一个网络浏览器时遇到一个问题,在线等你的帮助
- 网页提取内容中有乱码,怎么办?
- 菜鸟提问,有分,怎样在表格中加入图标,急等
- 过节了,技术大放送12:将*.BMP、*.ICO文件放到EXE文件中并调用它。
procedure TZSDJForm.ZSDateRuKu;
var
i: integer;
wl: string;
begin
i := 0;
while i<ListBox.Items.Count do//循环加入到数据库中
begin
ShowMessage(IntToStr(i));
wl := 'insert into Bbzts(BookID,CustID,ZuChuDate) values(';
wl := wl + '''' + ListBox.Items.Strings[i] + '''' + ',';
wl := wl + '''' + CustIDE.Text + '''' + ',';
wl := wl + ZuShuDateP.DateTime ; ////////////////
with DataM do
begin
ADOCommand.CommandText := wl;
//ADOCommand.Parameters[1].Value := ZuShuDateP.DateTime;
ADOCommand.Execute;
end;
wl := '';
Inc(i);
end;
end;
wl := wl + '''' + ':Date' + '''';->>wl := wl + ':Date';
...
params[0].asdatetime:=....
...