Why not CFTRY a simple verity search based on the collection you want to
check and create it in the CFCATCH section if it does indeed fail.

Martin Parry
Macromedia Certified Developer
http://www.BeetrootStreet.co.uk


-----Original Message-----
From: Doug Hyde [mailto:[EMAIL PROTECTED] 
Sent: 05 February 2005 13:08
To: CF-Talk
Subject: Checking for the existence of a collection?

Other than knowing beforehand by having created manually, does anyone
know
of a way to check for the existance of a collection. Like no point
running
cfindex if the collection doesn't exist, so let's check, and if no,
let's
create with cfcollection. I need to create and index collections
dynamically.

Thanks,

Doug




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193174
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to