and that's way over my head
I didn't create an array anywhere (not intentionally anyway)
-----Original Message-----
From: Calder, Erick [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 8:56 PM
To: CF-Talk
Subject: RE: structure output
> cass1,cass2,cass3
> 6/9/04,8/9/04,7/9/04
> issue1,issue2,issue3
so what you have is an array of structures and you want to display
them... you could do something like (warning: untested code):
<cfscript>
writeoutput("<table>");
for (i = 1; i LE ArrayLen(yourarray); i = i + 1) {
writeoutput("<tr>");
k = StructKeyArray(yourarray[i]);
for (j = 1; j LE ArrayLen(k); j = j + 1)
writeoutput("<td>" & yourarray[i][j]);
writeoutput("</tr>");
}
writeoutput("</table>");
</cfscript>
-----Original Message-----
From: Tim Laureska [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 5:51 PM
To: CF-Talk
Subject: RE: structure output
Thanks Erick... I got that to work and looked up and understand the
replace function now but I guess my follow-on questions are these:
My 3 key stucture basic output is this:
cass1,cass2,cass3
6/9/04,8/9/04,7/9/04
issue1,issue2,issue3
which is based on the following processing template receiving input from
a form:
<cfset me = structNew()>
<cfset me.mytitle = "#form.title#">
<cfset me.mydate1 = "#form.date1#">
<cfset me.myissue = "#form.issue#">
<table border="1">
<cfoutput>
<tr><td>#me.mytitle#</td></tr>
<tr><td>#me.mydate1#</td></tr>
<tr><td>#me.myissue#</td></tr>
</cfoutput>
</table>
I still don't understand how to manipulate these comma delimited strings
or space delimited strings into a viewer friendly format?
And I hate to sound like an idiot, but what does replacing the commas
with spaces do for outputting the data anyway ... I'm missing something
here
-----Original Message-----
From: Calder, Erick [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 8:36 PM
To: CF-Talk
Subject: RE: structure output
yournewlist = replace(yourlist, ",", " ", "all")
**********************************************************************
E-mail sent through the Internet is not secure. Western Asset therefore
recommends that you do not send any confidential or sensitive
information to us via electronic mail, including social security
numbers, account numbers, or personal identification numbers. Delivery,
and or timely delivery of Internet mail is not guaranteed. Western Asset
therefore recommends that you do not send time sensitive or
action-oriented messages to us via electronic mail.
**********************************************************************
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

