Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-23-2005, 05:27 PM
mweinberger mweinberger is online now
Registered User
 
Join Date: 12-23-2005
Posts: 40
Setting macros from VBScript

Hello,

How do I set a macro from a VBScript function? The following

Application.ExpandMacrosAndScript("%<property>%")

is used to retrieve macro property values only. How can I set an already existing property value? The following unfortunately doesn't work. :-(

Application.ExpandMacrosAndScript("%<property>%") = "New Value"

Thanks in advance,

Martin
Reply With Quote
  #2  
Old 12-23-2005, 05:47 PM
kevina kevina is online now
Registered User
 
Join Date: 03-26-2003
Posts: 825
To add a temp macro, use vbld_TempMacros().Add "MacroName", "MacroValue"

or for any type of macro, use this form: Application.Macros(vbldMacroTemporary).Add "MacroName", "MacroValue"

See http://www.visualbuild.com/Manual/?macrosaddmethod.htm for the details.
Reply With Quote
  #3  
Old 12-23-2005, 06:01 PM
mweinberger mweinberger is online now
Registered User
 
Join Date: 12-23-2005
Posts: 40
Cool! It works! Thanks Kevin,
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 06:09 PM.


Copyright © 1999-2023 Kinook Software, Inc.