Sorry I did not update the description. It now will always return a
Query :-)

I did find out that onApplicationStart it was not re-initiaing the
application.msgMgr object for the new functions and still trying to use
the old setup which did create a basic variable rather than a query.

All is good now :-)

-----Original Message-----
From: Brian Kotek [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 03, 2008 3:06 PM
To: CF-Talk
Subject: Re: Struct Issue

Just a note that your method does not return a struct or an array, which
is
what your description attribute says. It returns a struct or a query.

Also, you might want to consider refactoring this into two methods,
because
having it sometimes return a query and other times return a struct will
probably end up causing you big headaches. Either that, or refactor it
so
that it always returns the same type of value (or example, an array of
one
or more messages).

On Jan 3, 2008 2:38 PM, Rick Root <[EMAIL PROTECTED]> wrote:

> On 1/3/08, Adkins, Randy <[EMAIL PROTECTED]> wrote:
> > Thanks. Sometimes the query will have multiple messages to be
displayed
> > with different messageIDs. Thus the reason I considered the dynamic
> > query method :-)
> >
> > I will try isQuery but I think I have found that for some reason the
> > initial call is not creating the dynamic query itself.
>
> If it wasn't created at all, you'd get a "not defined" error.
>
> For example, <cfdump var="#foobar.bar#"> when foobar is not defined
> rsults in this error:  "Element BAR is undefined in FOOBAR."
>
> So in your case, messageStrucct *IS* being defined somewhere but it's
> being defined as a string somehow.
>
> --
> Rick Root
> Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at
> www.opensourcecf.com
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295785
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to