Sign in Join

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

Mailing lists / lazarus / 2010-10

How to use $(Save) macro

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

I have an external tool setup that takes $EdFile() as a parameter. How do I use $(Save) so that the IDE saves the current editor file, *before* it calls the external tool?

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net:8080/fpgui/

Reply by email

Mattias Gärtner
to Graeme Geldenhuys

Zitat von Graeme Geldenhuys :

Show quoted text 5 lines
Hi, I have an external tool setup that takes $EdFile() as a parameter. How do I use $(Save) so that the IDE saves the current editor file, *before* it calls the external tool?

The macros are resolved when filling in the TProcess values, so the save is executed before running the tool. The position of the Save/SaveAll macro in the string is irrelevant. For readability: start or end.
Choose any value you like.

Mattias

Reply by email