View Single Post
  #6  
Old 12-17-2004, 02:06 PM
daveronson daveronson is online now
Registered User
 
Join Date: 11-14-2003
Posts: 12
Is there any way to iterate through the passed in macros and convert them to environment variables so they are available to the sub-projects?

I tried this:
Dim macros, macro
Set macros = Application.Macros(vbldMacroTemporary)
For each macro in macros
macro.AddAsEnvVar = true
Next

but this didn't work for the sub-projects. I also tried adding the macros as project level macros but the VisBuild help says the environment variable won't take effect until the build is restarted.

For now I have created some "hard coded" SET MACRO actions that get set at the start of the master build.

Any thoughts?
Reply With Quote