On Mon, 02 Oct 2006 13:14:07 -0700, Ian Skinner wrote:
> You may also be running into an pass by reference
problem.
Yep. That's what it looks like to me.
> Try this
> <CFSET EventArray[ArrIndex]=dupliate(EventInfo)>
Typo aside, that's pretty much it, I reckon. Although I'd
dispense with
maintaining the ArrIndex variable, which can be replaced with
simply using
arrayAppend(). The counter seems to be serving no purpose
other than
pointing to the end of the array: CF already knows where that
is, so
there's no need to keep track of it separately.
I concur with everyone who says the whole construct (ie: the
originally
posted code) looks a bit clunky though.
Why are you building an array of identically-keyed structs
out of a query,
instead of leaving it as a query? As someone else said, if
you MUST have
three separate queries (doubtful), then just QoQ them
together. Better
yet, UNION them at database level.
--
Adam