请教各位大侠,在DELPHI运行程序提示如下错误:1.Declaration expected but end of file found.
2.Could not compile used unit'Unit1.pas'.
这是哪里有错误,需怎么解决!
虚心请教!
2.Could not compile used unit'Unit1.pas'.
这是哪里有错误,需怎么解决!
虚心请教!
解决方案 »
- 用存储过程写一个自动编号生成器
- 如何把PansiChan 转换成Char
- 如何实现 Delphi IDE 中的代码提示功能?
- 从DBGridEh导出数据到.XLS文件或者HTM文件(代码已给出,但有错误)
- 一个小问题,解决给分
- 关于C/S模式的同时操作的问题!!急,急,,急,,,!!!!一定重谢
- 如何在activeform里面,关闭包含它的ie程序?
- 请问那位高手能找到可供 Delphi 方便使用的 DirectX 工具?
- ACCESS为什么不能多用户使用?在c/s中为什么使用它,而只能在本地使用
- 请教专家如何将DBGRID中修改过的数据写回数据表(用SQL实现)?
- delphi
- Delphi 7 中,如何快速判断SQL是否能连接上??
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, DB, ADODB, Grids, DBGrids, StdCtrls;type
TForm1 = class(TForm)
ADOConnection1: TADOConnection;
ADOStoredProc1: TADOStoredProc;
DataSource1: TDataSource;
DBGrid1: TDBGrid;
Edit1: TEdit;
Edit2: TEdit;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);
begin
with ADOstoredproc1 do
begin
close;
parameters.ParamByName('@length').Value:=trim(Edit1.Text);
parameters.ParamByName('@width').Value:=trim(Edit2.Text);
open;
end;end;
'end.'