[Lazarus] TFileDescPascalUnit - How to save closed units?

silvioprog silvioprog at gmail.com
Wed Aug 1 23:12:31 CEST 2012


2012/8/1 Mattias Gaertner <nc-gaertnma at netcologne.de>:
> On Mon, 30 Jul 2012 21:42:58 -0300
> silvioprog <silvioprog at gmail.com> 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 (Code<>nil) 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




More information about the Lazarus mailing list