ah, its ok, did a wee test in the end.
fyi, they're passed as *reference*, as the following shows:
<cfscript>
myQuery = querynew("line_id");
queryaddrow(myQuery);
querysetcell(myQuery, "line_id", 1);
function changeQuery(QueryIn) {
QuerySetCell(QueryIn, "line_id", 2, 1);
}
</cfscript>
<cfdump var="#myQuery#">
<cfset changeQuery(myQuery)>
<cfdump var="#myQuery#">
in the first dump the value of myQuery.line_id[1] is 1
in the second dump, the value of myQuery.line_id[1] is 2, even though we
didn't explicitly return that query back out of the function.
Rich
> -----Original Message-----
> From: Rich Wild [mailto:[EMAIL PROTECTED]
> Sent: 15 September 2003 09:44
> To: '[EMAIL PROTECTED]'
> Subject: [ cf-dev ] complex variables passed to functions as...
>
>
> quick question,
>
> if I pass a query to a function like thus:
>
> myQuery = querynew("line_id");
> functionUseQuery(myQuery);
>
> is that query passed as a duplicate or by reference? I can't remember.
>
> ta muchos.
>
> -------------------------------------------------------
> Rich Wild
> Senior Web Developer
>
> -------------------------------------------------------
> e-mango Tel: 01202 755 300
> Gild House Fax: 01202 755 301
> 74 Norwich Avenue West
> Bournemouth Mailto:[EMAIL PROTECTED]
> BH2 6AW, UK http://www.e-mango.com
> -------------------------------------------------------
> This message may contain information which is legally
> privileged and/or confidential. If you are not the
> intended recipient, you are hereby notified that any
> unauthorised disclosure, copying, distribution or use
> of this information is strictly prohibited. Such
> notification notwithstanding, any comments, opinions,
> information or conclusions expressed in this message
> are those of the originator, not of e-mango.com ltd,
> unless otherwise explicitly and independently indicated
> by an authorised representative of e-mango.com ltd.
> -------------------------------------------------------
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]