Kinook Software Forum

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-12-2009, 01:31 AM
citect citect is online now
Registered User
 
Join Date: 11-13-2008
Posts: 30
Macro value setting

I try to set the value of a macro from the value of another macro. I using the "Set macro" step i.e

macro1 value = %macro2%

Macro2 value is "file://///S-BUSINESS/S-Bus%%20Global%%20Support/DRIVERS/Bundled%%20Packs/PowerLogic/PowerLogic_41604004_BETA_SITEID_22280.zip"


I want the value of macro1 to be the same as the value of macro2. I expect to see the double % characters but instead I single % characters and therefore I get the error "error parsing macros"

How can preserve the double % when setting micro1?
Reply With Quote
  #2  
Old 03-12-2009, 10:33 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
[vbld_EscapeString("%macro1%")]

or

[vbld_EscapeString(vbld_AllMacros()("macro1").Value )]

or a Run Script step with VBScript code like

Application.Macros(vbldMacroTypeTemporary).Add "macro2", vbld_AllMacros()("macro1").Value

http://www.kinook.com/VisBuildPro/Ma...xpressions.htm
http://www.kinook.com/VisBuildPro/Ma...scriptmisc.htm
http://www.kinook.com/VisBuildPro/Ma...osproperty.htm
Reply With Quote
Reply


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 11:15 PM.


Copyright © 1999-2023 Kinook Software, Inc.