Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Retreving Macro Value (https://www.kinook.com/Forum/showthread.php?t=3999)

ShiamakD 04-08-2009 01:33 PM

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

kinook 04-08-2009 01:36 PM

Try

BuildLoc = szNetWorkLoc & BuildVersionInfo & "%BUILD_LABEL%"

ShiamakD 04-08-2009 01:38 PM

You guys..ROCK..
it worked..thanks for your prompt and so accurate response.


All times are GMT -5. The time now is 07:18 PM.


Copyright © 1999-2023 Kinook Software, Inc.