Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-04

unit not found: Unit1

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Kjow

Hi,

I started a new project and I saved to a folder renaming (Save as...) the default "Unit1.pas" to "main.pas".

When I try to create a new event (double click on event, like Form OnCreate) I get this error:

main.pas(8,49) Error: unit not found: Unit1

NOTE: the project compiles, builds and runs well and I can create all events I want of components (like buttons "OnClick")

If I save the project leaving the default "uni1.pas" there are not problems.

I'm using Lazarus' r24617.

Regards,
Kjow

Reply by email

Kjow

Hi,

I started a new project and I saved to a folder renaming (Save as...) the default "Unit1.pas" to "main.pas".

When I try to create a new event (double click on event, like Form OnCreate) I get this error:

main.pas(8,49) Error: unit not found: Unit1

NOTE: the project compiles, builds and runs well and I can create all events I want of components (like buttons "OnClick")

If I save the project leaving the default "uni1.pas" there are not problems.

I'm using Lazarus' r24617.

Regards,
Kjow

Reply by email

Mattias Gaertner
to Kjow: I started a new project and I saved to a folder renaming (Save as...) the default…
Show quoted text 17 lines
Hi, I started a new project and I saved to a folder renaming (Save as...) the default "Unit1.pas" to "main.pas". When I try to create a new event (double click on event, like Form OnCreate) I get this error: main.pas(8,49) Error: unit not found: Unit1 NOTE: the project compiles, builds and runs well and I can create all events I want of components (like buttons "OnClick") If I save the project leaving the default "uni1.pas" there are not problems. I'm using Lazarus' r24617.

Fixed.

Mattias

Reply by email