My guess is that your "theObj" was an actual object and .length is a property of the object. Conflicting types.
Jake Churchill CF Web Tools [EMAIL PROTECTED] 402-408-3733 x103 -----Original Message----- From: Brian Dumbledore [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 5:15 PM To: CF-Talk Subject: Re: handling java array Jake, Apparently it doesn't let me use the .length property. no clue why. Also does anyone know how cfdirectory is implemented????? I have a network folder which I am trying to list, and using cfdirectory takes for ever.. >This worked for me: > ><cfset theObj=createobject("java","java.io.File").init("E:\webs")> ><cfset fileList = structnew()> ><cfset fileList.files = theObj.list()> ><cfdump var="#fileList.files#"> ><cfset theLength = ArrayLen(fileList.files)> > > > >Jake Churchill >CF Web Tools >[EMAIL PROTECTED] >402-408-3733 x103 > > >-----Original Message----- >From: Brian Dumbledore [mailto:[EMAIL PROTECTED] >Sent: Tuesday, August 15, 2006 4:07 PM >To: CF-Talk >Subject: handling java array > > >ok. here is the problem.. I want to use java.io.File() to get the >number of first level sub directories given a directory. I am trying >java based solution instead of cfdirectory to see its performance. > >But I couldn't get this to work > ><cfset >theObj=createobject("java","java.io.File").init("E:\webs").list()> ><cfset theLength=theObj.length> > >Doesn't throw any error. just blank andnothign else.. what am I doing >wrong?? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249914 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

