我的代码中有这么一句
re:=recodedatetime(now,strtoint(nian),strtoint(yue),
strtoint(ri),strtoint(shi),strtoint(fen),00,000);
但运行时出现这样的错误
[Error] jie.pas(239): Undeclared identifier: 'recodedatetime'
[Error] jie.pas(286): Statement expected but 'PROCEDURE' found
[Fatal Error] Project1.dpr(7): Could not compile used unit 'jie.pas'
不做的朋友们有谁遇到过这种情况。这么解决?
re:=recodedatetime(now,strtoint(nian),strtoint(yue),
strtoint(ri),strtoint(shi),strtoint(fen),00,000);
但运行时出现这样的错误
[Error] jie.pas(239): Undeclared identifier: 'recodedatetime'
[Error] jie.pas(286): Statement expected but 'PROCEDURE' found
[Fatal Error] Project1.dpr(7): Could not compile used unit 'jie.pas'
不做的朋友们有谁遇到过这种情况。这么解决?
[Fatal Error] Project1.dpr(7): Could not compile used unit 'jie.pas'
这两个错误是怎么回事
原因:你之前的函数或方法不完整(没有结束),例如
procedure TForm1.btn1Click(Sender: TObject);
begin
begin
;
// 缺少配套的 end;
end;procedure TForm1.btn2Click(Sender: TObject);
begin
;
end;
[Fatal Error] Project1.dpr(7): Could not compile used unit 'jie.pas'
原因:jie.pas出现错误,没能正确编译