Dohh, it wasn't that, but when you did that I decided to cfdump the
object.
After a little investigation, I found that <cfif
findNoCase("XSSFWorkbook", Variables.wb1.class.getCanonicalName())>

Is the equivalent of what I needed.

Thanks for the push in the right direction!

-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Friday, January 29, 2010 2:27 PM
To: cf-talk
Subject: RE: CF Equivalent of JAVA code.


At the risk of making several assumptions....

if(getmetadata(wb).name == 'XSSFWorkbook') file += "x";

~Brad

-------- Original Message --------
Subject: CF Equivalent of JAVA code.
From: "DURETTE, STEVEN J (ATTASIAIT)" <[email protected]>
Date: Fri, January 29, 2010 12:50 pm
To: cf-talk <[email protected]>


Hi All,


I'm trying to do some work and I have some java examples. For the most
part I can easily convert to CF, but I'm not sure how to convert this:

 

If(wb instanceof XSSFWorkbook) file += "x";


I don't know how to check if wb is an instance of XSSFWorkbook. Wb
could be XSSFWorkbook or HSSFWorkbook.





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330276
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to