James, Im not sure that I totally understand what you are trying to do or why, but the following may help.
The following method is used when employing static/dynamic html caching where you would normally generate an html file for later use as a cached file when necessary. This allows you to write cfml to that HTML file so that when you actually call the html file (and run it through the cf application server), it will go ahead and execute the cfml... thus giving you a hybrid static/dynamic cached template. I don't know if this will help, but it does work. <cfset CRLF = chr(13)> <cfset CFMLCode = ""> <cfset CFMLCode = CFMLCode & "<cfstoredproc procedure=""blah""" & CRLF> <cfset CFMLCode = CFMLCode & " datasource=""##myDSN##"">" & CRLF> <cfset CFMLCode = CFMLCode & CRLF> <cfset CFMLCode = CFMLCode & "<cfprocparam value=""#URL.myParam#"" & CRLF> etc. etc. etc. <cfoutput>#CFMLCode#</cfoutput> You may want to look at the new cffunction and cfcomponent tags in CFMX. These may get you closer to what you want to do. Jeremy -----Original Message----- From: James Thornton [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 21, 2002 7:06 PM To: [EMAIL PROTECTED] Subject: Re: Getting CF to parse tags stored in variables Thanks Phillip. That method permits me to build up stored procs, and store them in a variable until I am ready to execute them. I don't guess I get return codes, in/out params, and bind vars, but for this particular sp, it's ok. Does anyone know why Macromedia hasn't implemented a pair of functions that would allow you to write tags to a memory datastore and read them back as cfinclude reads from a file? Would the CFX API permit me to write such functions? Please forgive my ignorance, this is my second week working with CF. JT ________________________________________ James Thornton, http://jamesthornton.com ------------------------------------------------------------------------- This email server is running an evaluation copy of the MailShield anti- spam software. Please contact your email administrator if you have any questions about this message. MailShield product info: www.mailshield.com ----------------------------------------------- To post, send email to [EMAIL PROTECTED] To subscribe / unsubscribe: http://www.dfwcfug.org ------------------------------------------------------------------------- This email server is running an evaluation copy of the MailShield anti- spam software. Please contact your email administrator if you have any questions about this message. MailShield product info: www.mailshield.com ----------------------------------------------- To post, send email to [EMAIL PROTECTED] To subscribe / unsubscribe: http://www.dfwcfug.org
