> Say I have an application that will be deployed in mulitple > environments, some which are CF 4.5, and some which are CF 4.0. > > In in the CF 4.5 environments, I want to use the <cfmailparam> > tag. Is there anyway to prevent CF 4.0 from trying to parse this? > Cftry doesn't work. Testing for version in cfif doesn't work.
When CF loads a page, it parses all of the tags within the page, so you can't avoid that. CFTRY doesn't work because it only catches runtime exceptions - parsing errors occur before runtime. The only workaround I can think of is to separate your version-specific code into separate files, and CFINCLUDE the appropriate ones based on the version. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

