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 10-09-2009, 02:19 PM
HippyCraig HippyCraig is offline
Registered User
 
Join Date: 07-27-2006
Location: Philly
Posts: 211
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.
Reply With Quote
  #2  
Old 10-09-2009, 02:26 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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
Attached Files
File Type: bld createmacro.bld (571 Bytes, 1631 views)
Reply With Quote
  #3  
Old 10-09-2009, 02:44 PM
HippyCraig HippyCraig is offline
Registered User
 
Join Date: 07-27-2006
Location: Philly
Posts: 211
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.
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 10:15 PM.


Copyright © 1999-2023 Kinook Software, Inc.