Gabriel,

(Un?)Fortunatley that is just the way that CF works in regards to lists.

If you want to get all the nulls, these UDFs may well help you out.

http://www.cflib.org/udf.cfm?ID=961
http://www.cflib.org/udf.cfm?ID=962

Personally, I feel it should count them - but as long as you know it's that way, you 
can work 
with it.

HTH

Mark
------------------------------------------------------------------
[EMAIL PROTECTED]
ICQ: 3094740
Safe From Bees
[ www.safefrombees.com ]


Quoting Gabriel Rose <[EMAIL PROTECTED]>:

> Hi people,
> 
> Surely this is a simple problem.
> 
> <cfset list1 = "1,2,3,4,5,6">
> 
> <cfset list2 = "1,2,3,4,,6">
> 
> I would have thought that both of these lists have 6 elements.
> 
> But list2 has only 5 elements because one is empty.
> 
> This is vaguely annoying, I am exporting from an excel document into a 
> text document and then importing the data into a table.  I was using 
> ListGetAt to get the elements in the list, but the problem is those 
> empty elements.
> 
> Do all programming languages behave this way with lists?
> 
> Any ideas
> Thanks,
> Gabriel
> 
> 
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> 
> MX Downunder AsiaPac DevCon - http://mxdu.com/
> 
> 
> 

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to