#1
|
|||
|
|||
Unable to set macros in vbld_BuildStarting Project script?
Good morning!
I have add plenty of macros with VBScript throughout my project steps, but I can't seem to get this to happen in the main Project script (vbld_BuildStarting event). When trying to use either of the add methods described here: http://www.kinook.com/Forum/showthre...light=vbscript I get: Error firing vbld_BuildStarting event: Error in System (VBScript) script code at Line 497, Column 1 (Name redefined: 'vbldTemporary') for the Application.Macros(vbldMacroTemporary).Add "MacroName", "MacroValue" attempt and Error firing vbld_BuildStarting event: Error in Project (VBScript) script code at Line 1, Column 1 (Type mismatch: 'vbld_TempMacros') for the vbld_TempMacros().Add "MacroName", "MacroValue" method. Here's my syntax (which works from a Run Script step): Application.Macros(vbldTemporary).Add "CMD_SUBBUILDNUMBER", "00" Am I missing something silly or are macros not meant to be added/set in the vbld_BuildStarting event? Thanks! -jdavidi |
Thread Tools | |
Display Modes | Rate This Thread |
|
|