return multiple values, then you have to package them into a complex value
(a struct) and then return the struct. So rather than this:
<cfloop from="1" to="3" index="i">
<cfset names = session.myArray[i] />
<cfreturn names />
</cfloop>
you'd do something like this (this is foolish, because you could just return
the array, but you see the point):
<cfset names = structNew() />
<cfloop from="1" to="3" index="i">
<cfset names[i] = session.myArray[i] />
</cfloop>
<cfreturn names />
barneyb
-----Original Message-----
From: Ben Densmore [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 1:42 PM
To: CF-Talk
Subject: RE: CFC Question
I don't follow completely. If I set a variable inside the loop to
contain the structure then try to return that I get the same result.
Ben
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]