-
1. Re: Defining components and functions in CFScript
CF-AXL Jun 21, 2012 1:00 AM (in response to Community Help)The order of the parameters for writedump in the last code is wrong.
The correct syntax is the following according to the document.
writedump(var, output, format, abort, label, metainfo, top, show, hide, keys, expand, showUDFs);
So it should be something like writedump(myquery, "", "html", true); instead of writedump(myquery, false, html, name);.
In the second paragraph from the last, where it says "you can add an empty value" should be "you can add an empty string."
The last line should be writedump(myquery, "browser"); instead of writedump(myquery, html); since there is no html option for the second parameter output. Although the second parameter in this case is optional since the default value for output is browser.
-
2. Re: Defining components and functions in CFScript
Charlie Arehart Oct 20, 2012 9:18 PM (in response to Community Help)In one of the examples above, the function mistakenly uses a paren where it needs an open brace. See the end of the second line below, where I have corrected it:
public void function foo(String n1=10)
description="does nothing" hint="overrides hint" {
WriteOutput("Method foo() called
Parameter value is " & n1);


