That should work. What's the error you're getting from CF?
-----Original Message-----
From: Sam Komolafe [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 11:44 AM
To: CF-Talk
Subject: CFINCLUDE within CFLOOP not working
Hi,
How do I dynamically include files using CFINCLUDE within a CFLOOP
statement:
This does NOT WORK:
<cfloop index="ReportName" list ="#variables.ALLReports#" delimiters =
",">
<cfif #ReportName# NEQ "">
<cfset theReport = #ReportName#&'.CFM'>
<cfinclude template="#theReport#"><br>
</cfif>
</cfloop>
Help will be appreciated.
Thanks
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- RE: CFCONTENT/CFHEADER woes Dave Watts
- RE: CFCONTENT/CFHEADER woes Lofback, Chris
- RE: CFCONTENT/CFHEADER woes Pascal Peters
- CFINCLUDE within CFLOOP not working Sam Komolafe
- Barney Boisvert