Skip navigation
Currently Being Moderated

Invoke

Oct 31, 2012 12:48 PM

 
Replies
  • Currently Being Moderated
    Oct 31, 2012 12:48 PM   in reply to Community Help

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 3, 2012 6:52 PM   in reply to Community Help

    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

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points