PDA

View Full Version : Finding a macro


HippyCraig
10-09-2009, 02:19 PM
In the vbld_BuildStarting script event I am trying to see if a temporary macro has been passed in if not I want to initialize one with an empty value.

I tried using the Application.FindMacro but I don't think I am using it correctly. Can you provide a sample or suggest another way to check.

kinook
10-09-2009, 02:26 PM
See attached sample. FindMacro will find any type of macro, so you could use vbld_TempMacros()("TEST") instead to look only in temp macros.

http://www.kinook.com/VisBuildPro/Manual/findmacrofunction.htm
http://www.kinook.com/VisBuildPro/Manual/sysscriptmisc.htm
http://www.kinook.com/VisBuildPro/Manual/macrositemproperty.htm

HippyCraig
10-09-2009, 02:44 PM
Thanks for the quick response, that did it. I was using the wrong syntex. I was using an = instead of "is". I must have reverted back to a newbie, LOL

Thanks again.