This content has been marked as final. Show 4 replies
answer 1 - use evaluate
answer 2 - proably not, but you could always try to use a wildcard. Or, you could write a master include that contains all the other cfincludes. This would allow you to specify the order in which the files run.
Would you please "elaborate" on the "evaluate" <grin>
I've looked at that function several times, but for some reason or another it's correct use seems to evade me.
Q2... yea wild cards don't work Ho-well
> answer 1 - use evaluate
As a last resort, maybe.
// some basic functions
// now use a static name, fnToCall, to dynamically call different functions
fnToCall = f; // "f" being the function we defined above
writeOutput(fnToCall()); // outputs "true";
fToCall = g;
writeOutput(fnToCall()); // now outputs "false";
Functions can be assigned to variables just like any other value / variable
> answer 2 - proably not,
Just "no, you can't". You need the song and dance. But if it's the sort
of thing you're doing on a regular basis (can't think why you would be, to
be honest), then you should write a UDF that does it, and the you only have
to sing and dance once. Thereafter: use the UDF.
wish I understood it completely though.... thanks for the pointing of the right direction.