On 3/14/06, Pēteris Bērzs-Bērziņš <[EMAIL PROTECTED]> wrote:
> I gess u also should rename unit names in project file and all files witch is 
> using touse untis.


Indeed.   I had to:
- change the name of the unit at the top of the source file
- exit Lazarus
- rename the files (pas, lfm, lrs)
- edit the project file
- start Lazarus
- fix other compilation errors ( like changing the included file
   name in the "initialization" section of the unit ).

It's a little messy, but it seems to work just fine.


Adrian Maier



> -----Original Message-----
> From: Adrian Maier [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 14, 2006 1:39 PM
> To: [email protected]
> Subject: [lazarus] renaming units
>
> Hello,
>
> When creating new units,  Lazarus names them Unit1, Unit2, etc.
>
> How do i change the names of these units?
>
> If i modify at the top of the file "unit Unit1;" to "unit MenuPef;",
> the compiler says:   Error:  Illegal unit name: MenuPef.
>
> I've also tried to rename the file, but this of course did not work : it 
> complained that the original file cannot be found .
>
>
> Cheers,
> Adrian Maier
>
> _________________________________________________________________
>      To unsubscribe: mail [EMAIL PROTECTED] with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives
>
> _________________________________________________________________
>      To unsubscribe: mail [EMAIL PROTECTED] with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives
>

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to