Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   how do I set macro parameter default values? (https://www.kinook.com/Forum/showthread.php?t=1236)

epu 08-31-2005 12:15 PM

how do I set macro parameter default values?
 
Hey guys,

Trying to set a macro value with a parameter and give the parameter a useful default value.

So far, my parameter looks like
Code:


        LATEST_LABEL
        the Tools_*_LATEST label for this build
        PROJECT
        Tools_PROJECT_LATEST

and now I want parameter PROJECT to default to some useful value, like the PROJROOT macro. How can I do this?

Best regards,
-e

kinook 08-31-2005 04:09 PM

There isn't any provision for defining a default value for a macro parameter. One alternative would be to define two project macros, i.e.,

LATEST_LABEL = Tools_%PROJECT%_LATEST
PROJECT = %PROJROOT%

the value of PROJROOT will be the default, then override PROJECT with a temporary macro to use something other than the default.

epu 08-31-2005 05:00 PM

thanks for the quick reply. that's a good work-around.
-e


All times are GMT -5. The time now is 06:49 AM.


Copyright © 1999-2023 Kinook Software, Inc.