我是一个刚学dephil的,还望各位大侠帮忙。我做了一个数据库程序,用bde连接(用table),数据库为sql server2000.主窗体(form1),登录窗体(form2),添加用户窗体(form3).在还没有form3时一切良好,登录也没问题,。在加入了form3并设置了form3的table后程序就不能运行,删除了table也没用。错误提示显示"Declaration expected but end of file found"。指在没有代码的一行。我不知错在那儿,不知那位知道可以帮我,万分感谢。
就是说,会不会多了一个end。^_^
看看??的地方,仔细检查
type
TForm1 = class(TForm)
Button1: TButton;
?? procedure Button1Click(Sender: TObject);
?? function NamePart(FileName: PChar): PChar;
另一个是"."
应该都没有问题
showmessage('hello');//end;
end.
[Error] Unit1.pas(32): ';' expected but '.' found
[Error] Unit1.pas(34): Declaration expected but end of file found
[Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'
如果是这种错,就是少了end;