Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-30-2005, 09:56 AM
mattlittle mattlittle is online now
Registered User
 
Join Date: 08-30-2005
Posts: 2
Question Nested macro values

I have multiple builds that are identical apart from version number. The version number gives the path to certain files.

I have a macro called INT_VERSION_NUMBER with a value of 5.3

I use this in several places. For example, I have another macro called log file location called LOG_PATH with the value D:\Builds\Phase%.INT_VERSION_NUMBER%\ From within a step, I can use the value %LOG_PATH % and it expands not only LOG_PATH, but the macro within it to so %LOG_PATH% equates to: D:\Builds\Phase5.3\

This works until I use VB Script to get the values of project macros, when it doesn't expand the inner macro (i.e. it gets the value as it is written e.g. D:\Builds\Phase%.INT_VERSION_NUMBER%\ as oppose to other steps that use this value that expand it correctly to D:\Builds\Phase5.3\)

How can I get the full expansion as oppose to just the 'first level' of expansion using code similar to this vb script:

Const LOG_FOLDER = "LOG_PATH"
Set LOG_FOLDER_STRING = projectmacros.Item(LOG_FOLDER )

Cheers
Reply With Quote
  #2  
Old 08-30-2005, 10:05 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Application.ExpandMacrosAndScript("%LOG_PATH%")
Reply With Quote
  #3  
Old 08-30-2005, 10:17 AM
mattlittle mattlittle is online now
Registered User
 
Join Date: 08-30-2005
Posts: 2
Talking

Thank you - and a 9 minute turn-around for the answer - you guys rock!
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 09:47 AM.


Copyright © 1999-2023 Kinook Software, Inc.