Skip to main content
This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

itisdesign_-_AH
Inspiring
Dec 4, 2012 2:51 AM UTC

Just a couple notes: 1) "cfcinstance" can be an empty string, 2) "arguments" can be an array.

Example:

<cfscript>

  function f() {return ARGUMENTS;}

  argumentArray = [1,2,3,4,5];

  writeDump(invoke("", "f", argumentArray));

</cfscript>

When function defines no arguments, positional order can be maintained via argumentArray.

Thanks!,

-Aaron

Translate
Charlie Arehart
Community Expert
Community Expert
Oct 31, 2012 7:48 PM UTC

This page should point to the reference page for the CFINVOKE tag, especially for more on the "arguments" (which correspond to tag attributes).

The same would be true for any other functions that are essentially just function-based equivalents of existing CFML tags.

Translate
/Charlie (troubleshooter, carehart. org)