Sign in Join

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

Mailing lists / lazarus / 2010-06

macros don't work in search dialogs

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

dmitry boyarintsev
to Graeme Geldenhuys
Graeme Geldenhuys wrote
As the subject says. I thought the idea of macros is so you can use them all over in the IDE. A quick test revealed that macros are limited to only a few locations in the IDE. :-(

What should I search for if "$(ProjPath)" must be found (rather than project path)?

thanks,
dmitry

Reply by email

Graeme Geldenhuys
to dmitry boyarintsev
Show quoted text 8 lines
On Fri, Jun 11, 2010 at 11:51 AM, Graeme Geldenhuys wrote: > As the subject says. I thought the idea of macros is so you can use > them all over in the IDE. A quick test revealed that macros are > limited to only a few locations in the IDE. :-( What should I search for if "$(ProjPath)" must be found (rather than project path)?

I don't understand your question, but let me explain my issue.

I tried to use Find in File, and normally specify a directory location, and it must search recursively in that directory. No instead of specifying a directory I wanted to use the macro which should resolve to the directory where the .lpi file is located. But the Find in Files don't resolve the macro in the directory editbox.

I could use Find in Files and then select "all files in project", because there are other files and directories that are not part of the project.

eg:

/opt/MyProject
/Source
/Components
/Help
/ProtoType
util1.lpi
util2.lpi
util3.lpi

If the $(ProjPath) macro was resolved, then the path in the Directory editbox would actually be: /opt/MyProject

But IDE simply complains and says it doesn't know what $(ProjPath) is.

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

Reply by email