What about:
<cfset myArray = [{name:'col1', index:'col1',
sorttype:'string'},{name:'col2', index:'col2',
sorttype:'string'},{name:'col3', index:'col3', sorttype:'string'}] />
On Thu, Jan 6, 2011 at 1:01 PM, fun and learning <[email protected]>wrote:
>
> Hi All-
>
> I am trying to build a list with following values:
>
> <cfset list = "{name:'col1', index:'col1', sorttype:'string'},{name:'col2',
> index:'col2', sorttype:'string'},{name:'col3', index:'col3',
> sorttype:'string'}">
>
> So the above list has 3 values with each value enclosed within the
> brackets. When i convert it into array, am getting back 18 values as it is
> counting each attribute in the value. How can I make it to consider them as
> 3 values?
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:340621
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm