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
  #2  
Old 10-18-2007, 04:23 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,027
To access a (raw) macro value from script code:

Application.Macros(vbldMacroTemporary)("ABC").Valu e

or

vbld_AllMacros()("XYZ").Value

http://www.visualbuild.com/Manual/macrosproperty.htm
http://www.visualbuild.com/Manual/sysscriptmisc.htm


Or, to expand the macro's value (any macros or script expressions it references):

Application.ExpandMacrosAndScript("%MYMACRO%")

http://www.visualbuild.com/Manual/scripteditor.htm
http://www.visualbuild.com/Manual/specialchars.htm


In the case of FAILSTEP_NAME, it's more direct to just use the FailedStep object (FailedStep.Name) rather than that macro.
http://www.visualbuild.com/Manual/objectmodel.htm
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:45 PM.


Copyright © 1999-2023 Kinook Software, Inc.