Forum > Debugger

Some weird stuff is going on...

(1/1)

derox:
- 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:

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

--- End quote ---


It must be it

Marc:
Identifiers must be unique

In your example you have a unit and a variable identfied by pong. That is not allowed.

Navigation

[0] Message Index

Go to full version