procedure TForm1.Button1Click(Sender: TObject);
begin
try
with query1 do
begin
close;
sql.Clear;
sql.Add('creat database'+trim(edit1.Text)+'on(name='+trim(edit2.Text)+',filename='
+'"'+trim(edit3.text)+'"'+')');
execSQL;
end;
application.MessageBox('成功','提示',64);
except
application.MessageBox('失败','提示',64);
end;
end;
end.错误提示: Project Project.exe raised exception class EDBEngineError with message' Invalid use of keyword.
Token:creat
Line Number:1'Process stopped. Use Step or Run to continue.
begin
try
with query1 do
begin
close;
sql.Clear;
sql.Add('creat database'+trim(edit1.Text)+'on(name='+trim(edit2.Text)+',filename='
+'"'+trim(edit3.text)+'"'+')');
execSQL;
end;
application.MessageBox('成功','提示',64);
except
application.MessageBox('失败','提示',64);
end;
end;
end.错误提示: Project Project.exe raised exception class EDBEngineError with message' Invalid use of keyword.
Token:creat
Line Number:1'Process stopped. Use Step or Run to continue.
解决方案 »
- 神啊,请指点迷津。800G的数据啊!
- 用delphi如何写vpn拔号连接,有无控件或例程
- 新手:不会用tpagecontrol
- delphi如何合并、分割文件?请贴出源码
- OpenDialog和SaveDialog过滤器问题
- 用clientdataset.commandtext ,即SQL语言更新image,memo
- 哪位高手知道用CreateProcess或ShellExecute 写拷贝文件命令的格式?
- 如何得到鼠标当前指向的dbgrid的column的值
- listview问题请教
- Dephi中的控件动态添加及相应事件的问题!!
- 请教:各位大哥 服务器怎么监视客户端桌面(某个区域)的情况?谢谢!
- Borland的兴衰史--关于Delphi等IDE发展前景的讨论.
+trim(edit3.text)+'")');