Just be sure your values are simple - if you had a struct where the
value of yourStruct[key] was also a struct, the code below would
generate an error. As the later poster said - just use cfdump. ;)
Although if you want more control over the look and feel, start w/
Matt's code below. If your values are all simple, it will work fine - if
it's more complex, you would just need to modify.

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email    : [EMAIL PROTECTED]
WWW      : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Matt Liotta [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, December 31, 2002 3:00 PM
> To: CF-Talk
> Subject: RE: CFC Question
> 
> 
> <cfscript>
>       for(key in yourStruct)
>               WriteOutput(key & ":" & yourStruct[key]);
> </cfscript>
> 
> 
> Matt Liotta
> President & CEO
> Montara Software, Inc.
> http://www.montarasoftware.com/
> 888-408-0900 x901
> 
> > -----Original Message-----
> > From: Cutter (CF_Talk) [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, December 31, 2002 3:42 PM
> > To: CF-Talk
> > Subject: CFC Question
> > 
> > I know that this has been asked, but I can't find it in the archives
> > 
> > I have created a CFC with a function getTitle. The function has a
> return
> > type of struct. After calling the function through 
> CFInvoke, how do I 
> > loop through the struct to display my data? There doesn't 
> appear to be
> a
> > lot of information on this at MM...
> > 
> > Cutter
> > 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to