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)
-   -   Finding a macro (https://www.kinook.com/Forum/showthread.php?t=4208)

HippyCraig 10-09-2009 02:19 PM

Finding a macro
 
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

1 Attachment(s)
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/Ma...rofunction.htm
http://www.kinook.com/VisBuildPro/Ma...scriptmisc.htm
http://www.kinook.com/VisBuildPro/Ma...emproperty.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.


All times are GMT -5. The time now is 08:13 AM.


Copyright © 1999-2023 Kinook Software, Inc.