PDA

View Full Version : Macros and Perl


John Kerr
04-05-2007, 10:58 AM
How can I assigm the value of a Project Macro to a variable in Perl? I see how to do this for a temporay Macro: $build_num = vbld_TempMacroObj(BUILDNUMBER);

I don't see a similar function to return the value of a Project Macro.

Thanx

kevina
04-06-2007, 04:35 PM
Does the macro contain an object or just a value? Just use vbld_AllMacros()("MACRONAME") to get the value.

An object can't be persisted past the execution of a build so I would recommend storing objects only in temporary macros anyway...