Angel,

Try
<cfloop list="#form.displayfields#" index="qryfieldname">
        <cfset DisplayTable = DisplayTable & "<td><" & chr(23)
                & "##qry_ListAll." & qryFieldName & "##" & chr(23)
                & "</td>" & chr(10)>
</cfloop>

I'm not sure what the chr(23) s are for.  In my ascii chart, chr(23) = ETB
(end of trans. block). So, I would leave them off.

Steve


-----Original Message-----
From: Angel Stewart [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 12:43 PM
To: CF-Talk
Subject: Outputting hash signs and other 'reserved' symbols to a file


CFLOOP List="#form.displayfields#" Index="qryfieldname">

        <CFSET DisplayTable = DIsplayTable & "
<TD><#chr(23)#qry_ListAll." & "#qryFieldName#"
&"#Chr(23)#</TD>#chr(10)#">

</CFLOOP>

I am trying to generate a .cfm page that contains a table listing, so
that I can just select some values on a form, click submit and have my
dynamic table generated for me. :-)

But..I am having trouble with 'writing' the code to the file.

The code is standard and should be:

<td>#qryname.fieldname#</td>

The '#' is giving me grief, since the CFSET statement assumes that these
are enclosing some variable name or other. How do I get around this? 
It all has to be string data...that could contain #s or <!---s etc. etc.


-Angel



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com

Reply via email to