ArrayDeleteAt() returns a boolean after affecting the array. The question
then becomes, what do you want displayed?


  <cfif ArrayLen(session.order_array) gt "6">
      <cfset arrayDelete = ArrayDeleteAt(session.order_array,7)>
      <!--- do or display something here --->
 </cfif>


On Wed, Oct 12, 2011 at 1:36 PM, Tom Connolly <[email protected]>wrote:

>
> When the following code runs I get a "YES" diplayed on the page:
>
> <cfoutput>
> <cfif #ArrayLen(session.order_array)# gt "6">
>   #ArrayDeleteAt(session.order_array,7)#
> </cfif>
> </cfouput>
>
> I tried changing the code to this to get rid of the "YES" output but it
> still appears:
>
> <cfoutput>
>        <cfif #ArrayLen(session.order_array)# gt "6">
>        <cfset arrayDelete = ArrayDeleteAt(session.order_array,7)>
>                #arrayDelete#
>        </cfif>
> </cfoutput>
>
> Thoughts?
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348069
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to