Gavin,
There is a better and more PC way of doing this (That's Program ally
Correct :) While your method works it also will suppress other errors
related to your accessing this structure.
Here is what I recommend.
<cfif
isArray(sALLR["NASDAQAMEX-DOT-COM"][2]["EQUITY-QUOTE"]["best-bid-price"])>
<!--- You could also loop over the array here to get all the values --->
<cfoutput>#sALLR["NASDAQAMEX-DOT-COM"][2]["EQUITY-QUOTE"]["best-bid-price"][
1].value#</cfoutput>
<cfelse>
<cfoutput>#sALLR["NASDAQAMEX-DOT-COM"][2]["EQUITY-QUOTE"]["best-bid-price"].
value#</cfoutput>
</cfif>
Sorry for reviving the dead thread but I don't troll this list much.
Also lemme plug our new release of SOXML, which is a complete XML interface
for ColdFusion, free and open-source. blah, blah just go here:
http://www.siteobjects.com/index.cfm?fuseAction=showproducts
Happy Coding,
-Brett Suwyn
-----Original Message-----
From: Gavin Myers
Sent: Tuesday, October 17, 2000 9:29 AM
To: '[EMAIL PROTECTED]'
Subject: NASDAQ.com... ERRRRR!
Nevermind, Had my stuff inside the cfcatch... shoulda been like this:
<cftry>#sALLR["NASDAQAMEX-DOT-COM"][2]["EQUITY-QUOTE"]["best-bid-price"][1].
value#
<cfcatch></cfcatch>
</cftry>
<cftry>#sALLR["NASDAQAMEX-DOT-COM"][2]["EQUITY-QUOTE"]["best-bid-price"].val
ue#
<cfcatch></cfcatch>
</cftry>
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]