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)
-   -   Parameter Evaluation Order (https://www.kinook.com/Forum/showthread.php?t=1241)

Ken 08-31-2005 03:37 PM

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

kinook 08-31-2005 04:25 PM

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.


All times are GMT -5. The time now is 05:45 PM.


Copyright © 1999-2023 Kinook Software, Inc.