> Is there a way to find out if a verity collection exists in
> CFMX7? It doesn't seem to have a function like
> collectionExists() or something in the admin API either. If
> you know of a way, please let me know.
In general, if you can't find a specific function that returns exactly what
you want, your best bet for these sorts of things is to use exception
handling to try something, and see if it works:
<cftry>
<cfcollection action="create" name="foo" ...>
<cfcatch>
... Collection already exists?
</cfcatch>
</cftry>
Of course, if there's any other reason why creating a collection might fail,
you'd need to account for that.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243190
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