On Tue, 14 Mar 2006 13:38:57 +0200
"Adrian Maier" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> When creating new units, Lazarus names them Unit1, Unit2, etc.
>
> How do i change the names of these units?
Save the unit. The IDE opens a save dialog, where you can choose the name.
Or use File -> Save as directly.
> If i modify at the top of the file "unit Unit1;" to "unit MenuPef;",
> the compiler says: Error: Illegal unit name: MenuPef.
unit name and file name must match.
> I've also tried to rename the file, but this of course did not work : it
> complained that the original file cannot be found .
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives