I'm a bit confused, but are you saying you need a way to call a method and
dynamically pass in certain arguments? If so, just use argumentCollection.

s = structNew();
if(today is a special day) {
s.foo = 1;
}
s.goo = 1;

x = methodName(argumentCollection=s);

When you use argumentCollection, every key of the struct acts like a normal
argument. So, if today is special, my code would act like...

x = methodName(foo=1,goo=1)

If today is not special, it would act like

x = methodName(goo=1);

You can use the same syntax when calling UDFs as well. You can also use
attributeCollection to use the same feature when calling custom tags.


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to