Recent

Author Topic: Some weird stuff is going on...  (Read 9627 times)

derox

  • Jr. Member
  • **
  • Posts: 51
Some weird stuff is going on...
« on: June 18, 2004, 11:43:24 am »
- When I change the name on "Form1" to "Pong" I get an fatal error in "pong.lpr". The error occurs on: "Application.CreateForm(TPong, Pong);"... The error says: "Fatal: Syntax error, "." expected but ")" found."
And then when I change it back to Form1 the type declaration of TForm1 remains "TPong = class(TForm)" and not "TForm1 = class(TForm)" as it should be... If i name the form a name different to what I named my project it compiles fine...  Is this a bug or can't the form have the same name as the project?

- The project will not compile if there is a "#" in the path
(I've got a folder named #Projects)
Is this a bug?
 :?:  :?:  :?:  :?:  :?:  :?:  :?:  :?:  :?:  :?:  :?:  :?:  :?:  :?:  :?:  :?:  :?:  :?:

fatg

  • New Member
  • *
  • Posts: 33
Some weird stuff is going on...
« Reply #1 on: June 18, 2004, 03:11:22 pm »
Quote

...or can't the form have the same name as the project?


It must be it

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2583
Some weird stuff is going on...
« Reply #2 on: June 21, 2004, 11:06:29 am »
Identifiers must be unique

In your example you have a unit and a variable identfied by pong. That is not allowed.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018