Oh wait I get it now. CF ignores things like ,, and you want to know if it has
a value.
Try this,
<cfset myArray = arrayNew(1) />
<cfset myArray = listToArray(Variables.myList, ",", true) />
<cfif len(myArray[Variables.itemToTest])>
... Code to process if this item actually exists ...
</cfif>
-----Original Message-----
From: Robert Harrison [mailto:[email protected]]
Sent: Friday, October 08, 2010 12:08 PM
To: cf-talk
Subject: RE: ListFunction Question
Tried that - listlen() is showing me the total number of elements in the
entire list, including all rows. I need to tell how many columns are in the
list or just tell if a column exists.
Robert B. Harrison
Director of Interactive Services
Austin & Williams
125 Kennedy Drive, Suite 100
Hauppauge NY 11788
P : 631.231.6600 Ext. 119
F : 631.434.7022
http://www.austin-williams.com
Great advertising can't be either/or. It must be &.
Plug in to our blog: A&W Unplugged
http://www.austin-williams.com/unplugged
-----Original Message-----
From: John M Bliss [mailto:[email protected]]
Sent: Friday, October 08, 2010 12:04 PM
To: cf-talk
Subject: Re: ListFunction Question
listlen()
__________ Information from ESET Smart Security, version of virus signature
database 5515 (20101008) __________
The message was checked by ESET Smart Security.
http://www.eset.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337994
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm