jdavidi
02-28-2006, 09:23 AM
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/showthread.php?s=&threadid=1413&highlight=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
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/showthread.php?s=&threadid=1413&highlight=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