Data returned from a cfc function

2004-09-23 Thread Don
Here's a simple cfc function: !--- List users method --- CFFUNCTION NAME=List RETURNTYPE=query HINT=Get complete user list !--- Get users --- CFQUERY NAME=users DATASOURCE=exampleapps SELECT EmployeeID AS UserID, FirstName, LastName FROM tblEmployees ORDER BY LastName, FirstName /CFQUERY

Re: Data returned from a cfc function

2004-09-23 Thread Barney Boisvert
It'll be equivalent to neither, but rather to a simple CFSET : cfset users = users / When a method returns an object (query, structure, CFC instance) it passes by reference, so it just hands back a reference to the same object in memory.Simple types (strings, numbers, dates, and arrays) are

RE: Data returned from a cfc function

2004-09-23 Thread Steve Brownlee
: Data returned from a cfc function Here's a simple cfc function: !--- List users method --- CFFUNCTION NAME=List RETURNTYPE=query HINT=Get complete user list !--- Get users --- CFQUERY NAME=users DATASOURCE=exampleapps SELECT EmployeeID AS UserID, FirstName, LastName FROM tblEmployees ORDER

Re: Data returned from a cfc function

2004-09-23 Thread Don
Thank you both, so, it's object reference, my thinking needs to get into the OO direction, meantime, don't get lost in the process. It'll be equivalent to neither, but rather to a simple CFSET : cfset users = users / When a method returns an object (query, structure, CFC instance) it passes by

RE: Data returned from a cfc function

2004-09-23 Thread Dave Watts
Here's a simple cfc function: !--- List users method --- CFFUNCTION NAME=List RETURNTYPE=query HINT=Get complete user list !--- Get users --- CFQUERY NAME=users DATASOURCE=exampleapps SELECT EmployeeID AS UserID, FirstName, LastName FROM tblEmployees ORDER BY LastName, FirstName