当前位置:编程学习 > Delphi >>

delphi 编程报错?什么意思?

[Error] Unit1.pas(53): Constant expression expected [Error] Unit1.pas(59): Statement expected but 'PROCEDURE' found [Error] Unit1.pas(59): Undeclared identifier: 'EditKeyPress' [Error] Unit1.pas(59): ';' expected but '(' found [Error] Unit1.pas(59): ';' expected but ')' found [Error] Unit1.pas(66): Statement expected but 'PROCEDURE' found [Error] Unit1.pas(71): Undeclared identifier: 'Edit1Enter' [Error] Unit1.pas(73): Undeclared identifier: 'checkbox1' [Error] Unit1.pas(80): Undeclared identifier: 'edit1' [Error] Unit1.pas(83): Missing operator or semicolon [Error] Unit1.pas(86): Undeclared identifier: 'x' [Error] Unit1.pas(86): ')' expected but identifier 'Text' found [Error] Unit1.pas(87): Missing operator or semicolon [Warning] Unit1.pas(87): Comparing signed and unsigned types - widened both operands [Error] Unit1.pas(90): Missing operator or semicolon [Error] Unit1.pas(96): Statement expected but 'PROCEDURE' found [Error] Unit1.pas(96): Undeclared identifier: 'Edit2Enter' [Error] Unit1.pas(98): Undeclared identifier: 'checkbox1' [Error] Unit1.pas(105): Undeclared identifier: 'edit2' [Error] Unit1.pas(108): Missing operator or semicolon [Error] Unit1.pas(111): Undeclared identifier: 'x' [Error] Unit1.pas(111): ')' expected but identifier 'Text' found [Error] Unit1.pas(112): Missing operator or semicolon [Warning] Unit1.pas(112): Comparing signed and unsigned types - widened both operands [Error] Unit1.pas(115): Missing operator or semicolon [Error] Unit1.pas(118): Statement expected but 'PROCEDURE' found [Error] Unit1.pas(119): Identifier redeclared: 'TForm1.Button2Click' [Error] Unit1.pas(26): Unsatisfied forward or external declaration: 'TForm1.Edit1Change' [Error] Unit1.pas(27): Unsatisfied forward or external declaration: 'TForm1.Edit2Change' [Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'
答案:我猜你是把网页上的Delphi代码贴到IDE中直接编译的吧

网页上的代码一般都包含一些格式字符(不可见),编译器处理不了的
其他:漏掉了 ; 号 

上一个:delphi 内存写字符串问题(急)。。。。
下一个:delphi edit赋值没反应

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,