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 08-31-2005, 03:37 PM
Ken Ken is online now
Registered User
 
Join Date: 05-08-2003
Posts: 20
Parameter Evaluation Order

When I pass parameters to a function, what order or when are the parameters evaluated. For instance, if I have the following parameters what are my dependencies...

MY_MACRO1 "Some Name"
MY_MACRO2 %MY_MACRO1%
MY_MACRO3 %MY_MACRO2%


Will MY_MACRO3 be set to "Some Value" when the calling function accesses the macro "MY_MACRO3"?

In general, what will I run into here when I try and do this type of code?

Ken
Reply With Quote
  #2  
Old 08-31-2005, 04:25 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
When you say 'function', are you calling a script function or a step subroutine? I'm guessing it's the second. If so, all macros referenced in any values for parameter macros are expanded before any temporary macros are created, so this won't work if MY_MACRO1 and MY_MACRO2 don't already exist.
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:25 PM.


Copyright © 1999-2023 Kinook Software, Inc.