Well from a CF angle you have IsSimpleValue(), IsNumeric(), IsArray(), IsStruct(), IsObject() and IsQuery().
Were you hoping for something along the lines of Type(yourVar)? There's bound to be a Java solution but whether it's simple or pretty, someone else will have to answer that one. Ade -----Original Message----- From: Burns, John D [mailto:[EMAIL PROTECTED] Sent: 04 March 2005 19:50 To: CF-Talk Subject: Discover a variable's type? Does anyone have any ideas for how to discover a variable's type? (ie. Query, Structure, Array, etc) I feel like this should be something easy to do but I just can't think of a way to do it. I want to be able to take a given variable and do different things to it depending on its type. Any help would be great. Thanks. John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.0 - Release Date: 02/03/2005 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197517 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

