Copy link to clipboard
Copied
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSE99A664D-44E3-44d1-92A0-5FDF8D82B55C.html
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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);