> Just an FYI, you should not create variables in UDFs without using the > var scope. > > >>function FileLength(filename){ >> _File = createObject('java', 'java.io.File'); >> _File.init(JavaCast('string', filename)); >> return _File.length(); >>} > > > should be > > >>function FileLength(filename){ >> var _File = createObject('java', 'java.io.File'); >> _File.init(JavaCast('string', filename)); >> return _File.length(); >>}
I had already altered them to Variables._File. Is that the same btw? I'm lost here. Blame it on the lack of coffee :) Jesse ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk 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.