Sign in Join

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

Mailing lists / lazarus / 2012-07

TFileDescPascalUnit - How to save closed units?

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

silvioprog

Hi,

Attached my package. It don't save the unit "plugin.pas". I click in "Save All", but IDE call only "cgi1.lpi" and "hello.pas" to save in file.

So, you can only save one unit if it is open in the code editor?

Thx.

ps. sorry for my englysh. ^^'

Silvio Cl?cio My public projects - github.com/silvioprog -------------- next part -------------- A non-text attachment was scrubbed... Name: bcgi.zip Type: application/zip Size: 5435 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120730/24496e4d/attachment-0001.zip>

Reply by email

Mattias Gaertner
to silvioprog: Attached my package. It don't save the unit "plugin.pas". I click in "Save All", but IDE…
Show quoted text 7 lines
Hi, Attached my package. It don't save the unit "plugin.pas". I click in "Save All", but IDE call only "cgi1.lpi" and "hello.pas" to save in file. So, you can only save one unit if it is open in the code editor?

Yes.
You can save other source files yourself:

Code:=CodeToolBoss.FindFile(Filename);
if (Codenil) and (not Code.Save) then
  error...

Mattias

Reply by email

silvioprog
to Mattias Gaertner

2012/8/1 Mattias Gaertner :

Show quoted text 19 lines
On Mon, 30 Jul 2012 21:42:58 -0300 silvioprog wrote: > Hi, > > Attached my package. It don't save the unit "plugin.pas". I click in > "Save All", but IDE call only "cgi1.lpi" and "hello.pas" to save in > file. > > So, you can only save one unit if it is open in the code editor? Yes. You can save other source files yourself: Code:=CodeToolBoss.FindFile(Filename); if (Codenil) and (not Code.Save) then error... Mattias

Great idea! I'll ask if user want to save all files before close the project. :)

Thank you!

Silvio Cl?cio My public projects - github.com/silvioprog

Reply by email