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 07-22-2008, 09:17 AM
jjkboswell jjkboswell is online now
Registered User
 
Join Date: 07-15-2008
Location: Reading, UK
Posts: 9
Overriding macros when calling VBP scripts?

If you have the same project level macros in a set of scripts, is there any way of overriding the macro when calling a child script?

For example:
Script A defines project macro ABC value 1
Script B defines project macro ABC value 2

If A calls B, is there a way to get B to use value 1?

James
Reply With Quote
  #2  
Old 07-22-2008, 09:42 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Yes -- temporary macros override project macros. In the child project, reference the macro like %ABC%, and include a parameter Name ABC / Value %ABC% when calling the child project.

http://www.kinook.com/VisBuildPro/Ma...ecialchars.htm

http://www.kinook.com/VisBuildPro/Manual/macrostab.htm

http://www.kinook.com/VisBuildPro/Ma...ameterstab.htm
Reply With Quote
  #3  
Old 07-22-2008, 10:09 AM
jjkboswell jjkboswell is online now
Registered User
 
Join Date: 07-15-2008
Location: Reading, UK
Posts: 9
Just wanted to say thanks for your very rapid responses to my questions! Huge help and much appreciated.

Cheers

James
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 08:48 PM.


Copyright © 1999-2023 Kinook Software, Inc.