<CFLOOP INDEX=Z LIST="#MyListName#">
There is no from and to attributes
-----Original Message-----
From: Nathan R. Jessop [mailto:[EMAIL PROTECTED]
Sent: Friday, May 21, 2004 8:45 AM
To: CF-Talk
Subject: RE: Ignoring duplicates in <select>
I added the "list" attribute to my <cfloop> and now I get an error.
What am I doing wrong?
Here is my code:
<select name="filelistselect" size="15" multiple class="dirlinks">
<cfloop LIST="duplist" INDEX="i" FROM="1" TO="#ArrayLen(arPages)#">
<cfset noDupList = "">
<cfif not listFindNoCase(i, duplist)>
<option value="#sValNoComma#">Seq: #sValNoComma# Folio:
#sDisp##spacer1#</option>
<cfset noDupsList = listAppend(noDupsList,i)>
</cfif>
</cfloop>
</select>
On Fri, 21 May 2004 12:43:36 +0100, [EMAIL PROTECTED] wrote:
>>In which case, keep a list of items as you write them out, and before
>>you do the next one, check that it's not in the list
>
>Jumping in here so ignore if this does help you....
>
><cfset noDupsList = "">
><cfloop list="dupsList" index="anything">
> <cfif not listFindNoCase(noDupsList, anything)>
> <cfset noDupsList = listAppend(noDupsList,anything)>
> </cfif>
></cfloop>
>
>--
>dc
>
>
>
>
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

