[Lazarus] Dynamic resolution of IDE Macros (at first usage)

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Nov 8 22:02:25 CET 2015

On Sun, 8 Nov 2015 16:38:47 -0300
Luiz Americo Pereira Camara <luizamericop at gmail.com> wrote:

> I'd like to setup a IDE Macro to be used in project output file path.
> Since the value of this Macro is enviroment dependent (the directory of a
> web server) it can not be saved hardcoded in project options

You can use $Env(WEBDIR).

> I have in mind a feature that when an unknow macro is found a dialog is
> show asking for the Macro value then store in Session file.

How to change it later?
It would be a bad GUI. Users expect a browse button to select the

> I looked in Conditionals / Additions and overrides and could not find how
> accomplish this.
> Is it possible with the current IDE features?


More information about the Lazarus mailing list