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]

Reply via email to