Recent

Author Topic: Source Editor: I only see Unit and not .PAS  (Read 4133 times)

Elmug

  • Hero Member
  • *****
  • Posts: 849
Source Editor: I only see Unit and not .PAS
« on: July 18, 2011, 10:20:45 am »
I have been working on the same project for a few days, learning each fundamental thing as well as possible, and I believe (but may be confused) that I saw before a tag next to [Unit], called [.PAS] which is no longer there.

At the [Unit] is the only place I actually do anything, and I recall the [.PAS] had a few lines only that said "run application" or something like that.

So why don't I see the [.PAS] part at the Source Editor?

Also, is it possible to write code also in the .PAS part, when and if I get to see it? And if one writes code, in the .PAS, does it get wiped out each time one RUNS the project?

Thanks!

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Source Editor: I only see Unit and not .PAS
« Reply #1 on: July 18, 2011, 11:05:13 am »
A screenshot showing where those things are would help.

Zoran

  • Hero Member
  • *****
  • Posts: 1988
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Source Editor: I only see Unit and not .PAS
« Reply #2 on: July 18, 2011, 11:10:54 am »
You probably had the "lpr" file opened actually?
Click on view->units (or find "view units" icon in toolbar, on the left, just below "new unit" icon, or type Ctrl+F12). In the list, find <name of your project>.lpr file and open it. Is this what you are looking for?
Swan, ZX Spectrum emulator https://github.com/zoran-vucenovic/swan

Elmug

  • Hero Member
  • *****
  • Posts: 849
Re: Source Editor: I only see Unit and not .PAS
« Reply #3 on: July 18, 2011, 12:51:30 pm »
The project is working fine. I'm learning a lot and it will be quite useful for me. So if the .PAS does not show for now, no problem. I actually can see that file in the folder.

Also, I start the project by going into the project folder and I just click on the .lpi file, is that the cause maybe?

By the way, which is the right way to open an existing project?

Thanks!

 

TinyPortal © 2005-2018