Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
Register FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-28-2006, 08:23 AM
jdavidi jdavidi is online now
Registered User
 
Join Date: 10-27-2003
Posts: 38
Question 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
Reply With Quote
 


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 01:26 AM.


Copyright © 1999-2023 Kinook Software, Inc.