| Posted By |
Discussion Topic: DELIMiters!!!!!!
|
|
Link-Jaffa |
12-31-2002 @ 3:27 PM |
|
|
New Member
Posts: 6
Joined: Dec 2002
|
How wuold you specify <p> as a delimeter?
Thanks, Matt
|
dsiles |
12-31-2002 @ 4:29 PM |
|
|
New Member
Posts: 24
Joined: Dec 2002
|
Please explain your problem a little more in detail. Do you mean delimiter by the actual Paragraph tag, or do you mean by carriage returns, line feeds? Can us some insight to the data source and what your trying to accomplish, and we will get you the answer. Dave
-- David Siles dave@siles.com "Your going to code it in ASP.WHAT ?!?!?!?!?... Oh you have 6 months to do it... Ok "
|
Webmaster |
12-31-2002 @ 6:23 PM |
|
|
Administrator
Posts: 4533
Joined: Jan 2002
|
If you are creating a list:
<!--- First define the variable as blank ---> <cfset MyList = ""> <!--- now loop through your records and use ListAppend ---> <cfoutput query="MyDB"> <cfset MyList = ListAppend(MyList, "#Your_Value#", "<p>"> </cfoutput>
ListAppend works as follows: ListAppend(List_Name, The_Value, DELIMITER)
If you are looping trough something and you want to list the values separated by the delimiter (more then likely your case) , then try this:
<cfoutput> <cfloop list="#The_Variable#" index="idx" delimiters="<p>"> #idx#<BR> </cfloop> </cfoutput>
Let me know if you had something else in mind
Thanks, Pablo Varando EasyCFM.COM, LLC. ===================================================== "In my early years SPAM was good, not! SPAM sucks!"
|