PDA

View Full Version : Overriding macros when calling VBP scripts?


jjkboswell
07-22-2008, 09:17 AM
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

kinook
07-22-2008, 09:42 AM
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/Manual/specialchars.htm

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

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

jjkboswell
07-22-2008, 10:09 AM
Just wanted to say thanks for your very rapid responses to my questions! Huge help and much appreciated.

Cheers

James