<cfset list1 = "1,2,3,4,5,6">
<cfset list2 = "1,2,3,4,,6">
<cfset myArray = list2.split()>
The array should have an empty element at position 5.
Spike
Gabriel Rose wrote:
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/
-- Stephen Milligan Software Architect for http://www.bestrates.com.au MSN: [EMAIL PROTECTED]
--- 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/
