Kinook Software Forums

Kinook Software Forums (http://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (http://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Macro value is name (http://www.kinook.com/Forum/showthread.php?t=5270)

CodeScrubber 05-21-2014 09:00 AM

Get Value of a Macro referenced by the value of another Macro
 
I have a macro, MACRO_NAME, that has the name of another macro as its value. I need to construct a build rule based on the value of the of macro whose name is stored in MACRO_NAME. Both are temporary macros

%MACRO_NAME% is "ARCHIVE_DIRECTORY"

The value of the ARCHIVE_DIRECTORY macro is "". I need to perform a step if this is the case.

I have tries variations of:
condition:
[vbld_TempMacroObj("%MACRO_NAME%")]

I get:
Error expanding macros or script in property condexpr:

What am I missing?

kinook 05-21-2014 09:34 AM

Apparently the macro value is not an object but a string, so use

[vbld_TempMacro("%MACRO_NAME%").Value]

CodeScrubber 05-21-2014 09:56 AM

Thank you!!!!!!
 
Wow, that is subtle. Thanks again!

Hopefully, My forehead will heal where I have been bashing it against the wall for the last few hours...


All times are GMT -5. The time now is 12:40 PM.


Copyright 1999-2019 Kinook Software, Inc.