sas,
Use <cfdump var="#bodyStruct#">. This has the in-built capability to
output complex variables (arrays, structures, objects, functions, etc.)
<cfoutput> is only for simple strings, numbers, etc.
Hope that helps,
Chris
Scott Stewart wrote:
> Hey all,
>
>
>
> Ive got a component that runs a query. The query returns a bunch of HTML in
> a MS Access memo field.
>
> When I invoke the query I set a return variable called bodyStruct. I can
> dump this variable and see the contents
>
>
>
> <cfset BodyObj=CreateObject("component","webControl")>
>
> <cfinvoke component="#BodyObj#" method="getBody"
> returnvariable="bodyStruct">
>
>
>
>
>
> When I try to use it in a cfoutput I get the following error
>
>
>
>
>
>
>
> Complex object types cannot be converted to simple values.
>
>
>
> The expression has requested a variable or an intermediate expression result
> as a simple value, however, the result cannot be converted to a simple
> value. Simple values are strings, numbers, boolean values, and date/time
> values. Queries, arrays, and COM objects are examples of complex values.
>
> The most likely cause of the error is that you are trying to use a complex
> value as a simple one. For example, you might be trying to use a query
> variable in a <CFIF> tag. This was possible in ColdFusion 2.0 but creates an
> error in later versions.
>
>
>
>
>
> Any ideas n how to output this sucker?
>
>
>
> Thanks
>
>
>
> sas
>
>
>
>
>
>
>
>
>
> Scott Stewart
> ColdFusion Developer
>
> HYPERLINK
> "http://maps.yahoo.com/py/maps.py?Pyt=Tmap&addr=7241+Jillspring+Ct&csz=Sprin
> gfield%2C+VA.+22152&country=us" \n7241 Jillspring Ct
> Springfield, VA. 22152
>
>
> HYPERLINK "mailto:[EMAIL PROTECTED]" [EMAIL PROTECTED]
> HYPERLINK "http://www.sstwebworks.com" \nhttp://www.sstwebworks.com
>
>
> tel:
> mobile:
>
> HYPERLINK
> "http://www.plaxo.com/click_to_call?src=jj_signature&To=703-912-3076&Email=s
> [EMAIL PROTECTED]" \n703-912-3076
> HYPERLINK
> "http://www.plaxo.com/click_to_call?src=jj_signature&To=703-220-2835&Email=s
> [EMAIL PROTECTED]" \n703-220-2835
>
>
>
>
>
> HYPERLINK
> "https://www.plaxo.com/add_me?u=25770055805&src=client_sig_212_1_card_join&i
> nvite=1" \nAlways have my latest info
>
> HYPERLINK "http://www.plaxo.com/signature?src=client_sig_212_1_card_sig"
> \nWant a signature like this?
>
>
>
>
--
http://www.cjordan.us
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 &
Flex 2
Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273327
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4