Got it figured... It was a COM structure and you can't loop over COM structures in cfscript (CF5) So had to break out of the cfscript and do the loop <cfloop collection="#objItem#" item="item"> <cfoutput>#item.text#</cfoutput></cfloop>
Will also try your suggestion anyway to see what happens. Thanks ----- Original Message ----- From: "Joe Eugene" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 11:44 AM Subject: RE: cfscript object array reference > Did u figure this out... have you tried something like.. > xStruct=structNew(); > xStruct=objURL; > > <cfdump var="#xStruct#"> > > > Joe Eugene > > > > > -----Original Message----- > > From: Taco Fleur [mailto:[EMAIL PROTECTED] > > Sent: Monday, February 24, 2003 4:05 AM > > To: CF-Talk > > Subject: Re: cfscript object array reference > > > > > > Hi Joe, > > > > > Are you using CFMX or CF5? You dont need any COM objects > > > for xml parsing in CFMX. Use cfInvoke and xmlParse.. > > > > Using CF5 > > > > > If you are using CF5 .. objURL[i].text > > > Are you sure.. you can't dump a "RESULT" from a COM Objects? > > > > Nope, can't dump COM objects with CFDUMP in CF 5 anyway. > > > > I tried [] instead of () > > I used the code in VB in which it is objURL(i).text but when > > moving it over > > to CF with cfscript it just won't work with either () or []... > > kinda drives me nuts.. > > > > > > > > objURL = objXMLDOM.getElementsByTagName("url"); > > > > > > I dont think objURL is an array.. > > > sounds like > > > xarr=arrayNew(1); > > > xarr[1]=structNew(); > > > xarr[1].FirstName="Taco"; > > > xarr[1].LastName="Fleur"; > > > > > > Then you can call something like you did xarr[1].FirstName (== "Taco") > > > > > > Joe Eugene > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

