What Will was talking about was the var keyword. These two variables
are now in the VARIABLES scope and will be preserved between method
calls. In this case the impact is minimal as you rewrite them in each
call, but in general everything that you don't explicitly want to
preserve should be var keyworded.

On 3/6/06, Bryan Stevenson <[EMAIL PROTECTED]> wrote:
> > Where are your local vars for cols and XMLResult? heehee...
> >
> > :)
> >
> > Will
>
> In the code..look again Willy ;-)
>
>     <cfxml variable="XMLResult">
>      <root>
>         <columns>#Trim(XMLFormat(arrayLen(cols)))#</columns>
>         <rows>#Trim(XMLFormat(ARGUMENTS.queryObj.recordCount))#</rows>
>
> Now say it with me Will...D....O...H.....DOH! ;-)

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234216
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to