Error Creating Form Identifier Expected On Line 2
users. Common questions. Bug and problem reports Moderator: Alex Zencovich Post a reply 6 posts • Page 1 of 1 Error compiling with new version by altink » Fri Sep 08, 2006 7:27 pm Hi Alex First let me congratulate you for this fine job. I have seen PivotCube for some time, thougt it was right what I was lookin for and testing it a bit. I have recently downloaded the latest PivotCube VCL Freeware and installed it (I am using Delphi 2006). When I reopened my project (compiled successfully with previous PivotCube) I had this problem. 1. Just when I open my project I receive "Error creating form: Identifier expected on line 429" 2. I cannot open my form from this point. 3. Compiler's error message at Ctrl+F9 is: [Pascal Fatal Error] MainDemo.pas(15): F2051 Unit PivotCube_SRC was compiled with a different version of zCube_TLB.ICube 4. Unknown appearing in the uses list are: PivotCube_SRC, PivotGrid_SRC and PivotToolBar_SRC. Meanwhile I have no problem running the demo unicode provided with this latest PivotCube version. My project was completely based in the previous version's demo also. I just changed the datas and left all rest as it was Please advise wish you success Altin altink Guest Posts: 3Joined: Fri Sep 08, 2006 6:37 pm Top Re: Error compiling with new version by AlexZencovich » Fri Sep 08, 2006 8:46 pm First let me congratulate you for this fine job. I have seen PivotCube for some time, thougt it was right what I was lookin for and testing it a bit. 1. Just when I open my project I receive "Error creating form: Identifier expected on line 429"Hmm. Usually it happened when dfm contain enum value which does not exists in installed bpl. Line 429 of MainDemo.dfm have codeSettings.PrintSettings.TrueTypeFont.Color = clWindowTextProbably it does not mean same in your project. Could you see?3. Compiler's error message at Ctrl+F9 is:[Pascal Fatal Error] MainDemo.pas(15): F2051 Unit PivotCube_S
Tudo Este Tópico Este Fórum Pesquisa Avançada Portal Fóruns Regras Downloads SAC Questões importantes sobre o SAC Conheça o SAC do ACBr Contratar o SAC Conteúdo não lido Filtros Ativos Loja Virtual Equipe de Moderação Mais Mais Todas Atividades Home ACBr ACBrDFe ACBrCTe Error Creating Form: Identifier Expected On Line 21 Entre para seguir isso Seguidores 1 Error Creating Form: Identifier Expected On Line 21 Criado por Maurício Sareto, June 6, 2014 2 posts neste tópico Maurício Sareto 4 Membro Membros http://pivotcube.com/forum/viewtopic.php?t=80 4 175 posts LocalizaçãoRonda Alta Postado June 6, 2014 (editado) Galera, estou com um problema ao abrir o Demo do ACBRCte, o erro é o seguinte: Error Creating form: Identifier expected on line 21 Alguém sabe oque pode ser? OBS. Sim, eu fiz pesquisa antes de abrir o tópico. OBS². Sim, eu atualizei os componentes. OBS³. Utilizo http://www.projetoacbr.com.br/forum/topic/16015-error-creating-form-identifier-expected-on-line-21/ delphi 7 Aguardo resposta... Editado June 6, 2014 por Maurício Sareto Compartilhar este post Link para o post Compartilhar em outros sites Italo Jurisato Junior 2.109 Moderador Moderadores 2.109 13.300 posts LocalizaçãoAraraquara-SP Postado June 6, 2014 Boa tarde Mauricio, Exclua a pasta: ...\Exemplos\ACBrCTe\Delphi e atualize tudo novamente, depois tente abrir o programa exemplo. Compartilhar este post Link para o post Compartilhar em outros sites Crie uma conta ou entre para comentar Você precisar ser um membro para fazer um comentário Criar uma conta Crie uma nova conta em nossa comunidade. É fácil! Crie uma nova conta Entrar Já tem uma conta? Faça o login. Entrar Agora Entre para seguir isso Seguidores 1 Ir para a lista de tópicos ACBrCTe Atenção !! Este tópico está sem resposta a mais de 120 dias. Todas Atividades Home ACBr ACBrDFe ACBrCTe Error Creating Form: Identifier Expected On Line 21 Idiomas Português (Padrão) English (USA) Tema Default Projeto ACBr Projeto ACBr - Flat (Padrão) Contato Projeto criado e mantido pela DJSystem Community Software by Invision Power Services, Inc. × Entrar Cadastre-
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or http://stackoverflow.com/questions/4773253/how-i-can-to-make-a-procedure-for-create-a-form posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes http://bbs.csdn.net/topics/390940927 a minute: Sign up How i can to make a procedure for create a form? up vote 1 down vote favorite I have this procedure : procedure TForm1.Button1Click(Sender: TObject); var a:TForm2; begin a := TForm2.Create(Self); a.Parent := ScrollBox1; a.Align := error creating alClient; a.Show; a.SetFocus; end; And i change that above code to this, but i receive a error, Why? I must change this code to? procedure TForm1.MakeAform(aForm:Tform;Cmp:TComponent;Parent1:TWinControl;Align1:TAlign); var a:aForm; // Error Here begin a := aForm.Create(Cmp); a.Parent := Parent1; a.Align := Align1; a.Show; a.SetFocus; end; procedure TForm1.Button2Click(Sender: TObject); begin MakeAform(Tform2,Self,Panel1,alClient); end; delphi delphi-xe share|improve this question asked Jan 23 '11 at 10:03 User 2023920 Why the need for a MakeAForm procedure? And why is it part of the TForm1 class? error creating form –johnny Jan 23 '11 at 15:33 1 You want us to guess the error message, right? My guess: Undeclared identifier: aForm –Cosmin Prund Jan 23 '11 at 16:11 Or maybe the error message is "Identifier redeclared"? –Cosmin Prund Jan 23 '11 at 16:12 @Cosmin If you look at the code it will become obvious. The error occurs when OP declares a variable of type aForm but aForm is an instance rather than a type. –David Heffernan Jan 23 '11 at 16:41 @David, that's not the point I was trying to make. This is an site for programmers. I expect an user calling our help line to say but i receive a error, but I expect an programmer to understand the importance of the error messages. Hint: If you try the user's exact code in Delphi 2010, at the marked line, you get the error message E2007 Constant or type identifier expected. If you highlight the error message in the Messages list and hit "F1" you get a help page that actually helps, and gives a good example of a similar error. –Cosmin Prund Jan 23 '11 at 17:59 | show 3 more comments 2 Answers 2 active oldest votes up vote 5 down vote Your original code passes a class (TForm2) to a procedure which receives an instance (aForm). Indeed this instance is not even initialised but that's not actually your problem here. What
JavaScript ASP HTML(CSS) HTML5 Apache 开发语言/框架 Delphi VC/MFC VB C/C++ C++ Builder 其他开发语言 数据库开发 MS-SQL Server Oracle PowerBuilder Informatica 其他数据库开发 硬件/嵌入式开发 嵌入开发(WinCE) 驱动开发/核心开发 硬件设计 单片机/工控 汇编语言 VxWorks开发 Linux/Unix社区 系统维护与使用区 应用程序开发区 内核源代码研究区 驱动程序开发区 CPU和硬件区 论坛帮助 论坛牛人 论坛地图 专家问答 << >> CSDN > CSDN论坛 > Delphi > 语言基础/算法/系统设计 返回列表 管理菜单 置顶 推荐 锁定 移动 编辑 删除 帖子加分 帖子高亮 结帖 发帖 回复 关注 hellowindowns dehpi project manager 中open 窗体时报错error creating form:identifier expected on line [问题点数:40分,结帖人hellowindowns] 快速回复 只显示楼主 关注帖子 dehpi project manager 中open 窗体时报错error creating form:identifier expected on line [问题点数:40分,结帖人hellowindowns] 不显示删除回复 显示所有回复 显示星级回复 显示得分回复 只显示楼主 收藏 取消关注 关注 hellowindowns hellowindowns 本版等级: 本版专家分:0 结帖率:100% 楼主 发表于: 2014-11-26 11:18:07 鄙人新手! dehpiprojectmanager中open窗体时报错errorcreatingform:identifierexpectedonline2! open窗体时,报错errorcreatingform:identifierexpectedonline2!之后就弹出.pas文件。 怎解决?谢谢!! 更多 分享到: 对我有用[0] 丢个板砖[0] 引用 | 举报 | 编辑 删除 管理 回复次数:6 相关知识库: 深度学习 React Native iOS 直播技术 取消关注 关注 hellowindowns hellowindowns 本版等级: 本版专家分:0 结帖率:100% #1 得分:0 回复于: 2014-11-26 11:18:38 对我有用[0] 丢个板砖[0] 引用 | 举报 | 编辑 删除 管理 取消关注 关注 hellowindowns hellowindowns 本版等级: 本版专家分:0 结帖率:100% #2 得分:0 回复于: 2014-11-26 11:19:44 重启了很多次了。还是这样子。 对我有用[0] 丢个板砖[0] 引用 | 举报 | 编辑 删除 管理 取消关注 关注 doloopcn doloopcn 本版等级: 本版专家分:2975 结帖率:82.35% #3 得分:0 回复于: 2014-12-01 00:16:39 用记事本打开窗口文件,看一下是不是有控件的属性没有设置好 如ADOQUERY的active属性之类是不是默认打开,会造成闪退 最好贴一个窗口的源码