Kinook Software Forum

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-08-2009, 01:33 PM
ShiamakD ShiamakD is online now
Registered User
 
Join Date: 04-28-2008
Location: us
Posts: 32
Retreving Macro Value

Hi,

I have a script that create a temp macro (Build_label) and sets its value, I am trying to retrieve the value using %% sign e.g %Build_Label% with string concatenation using VB

BuildLoc = szNetWorkLoc & BuildVersionInfo & %BUILD_LABEL%

above code always generates compilation error

Error in Run Script (VBScript) script code at Line 21, Column 49 (Expected end of statement)
Code: BuildLoc = szNetWorkLoc & BuildVersionInfo & 0.3.1.09040801

where exactly I dont have end of statement in the code above?

TIA
Reply With Quote
  #2  
Old 04-08-2009, 01:36 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Try

BuildLoc = szNetWorkLoc & BuildVersionInfo & "%BUILD_LABEL%"
Reply With Quote
  #3  
Old 04-08-2009, 01:38 PM
ShiamakD ShiamakD is online now
Registered User
 
Join Date: 04-28-2008
Location: us
Posts: 32
You guys..ROCK..
it worked..thanks for your prompt and so accurate response.
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:36 AM.


Copyright © 1999-2023 Kinook Software, Inc.