Please help me to figure out why this isnt working.


<cfloop query="ctrdetail">
<cfset e1="#e1#">
<cfset e2="#e2#">
<cfset e3="#e3#">
<cfset e4="#e4#">
<cfset e5="#e5#">
<cfset e6="#e6#">
<cfset e7="#e7#">
<cfset eList="e1,e2,e3,e4,e5,e6,e7">
<cfset eListValues="#e1#,#e2#,#e3#,#e4#,#e5#,#e6#,#e7#">
<cfset listPosition = listcontains(eListValues, "1")>
<cfset FinalAnswer = ListGetAt(eList, ListPosition, ",")>
</cfloop>
<cfoutput>#FinalAnswer#</cfoutput>



Error Diagnostic Information

An error occurred while evaluating the expression:


 FinalAnswer = ListGetAt(eList, ListPosition, ",")



Error near line 69, column 7.
----------------------------------------------------------------------------
----

Parameter 2 of function ListGetAt which is now "0" must be a positive
integer


The error occurred while processing an element with a general identifier of
(CFSET), occupying



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to