You'd use a structure, arrays in CF are indexed with intergers, structure
have character keys.

<cfscript>
        item = StructNew();
        item.level = level;
        item.ecs = expanded;
        item.dn = dn;
        item.rdn = rdn[1];
        item.icon = icon;
<cfscript>

<!--- Have a look at the item --->
<cfdump var="#item#">

If you want to preserve the case of the struct keys, user item["level"]
syntax instead.

Ade

-----Original Message-----
From: Charles Heizer [mailto:[EMAIL PROTECTED]
Sent: 14 January 2005 18:50
To: CF-Talk
Subject: Multivalued Array help


Hello,
If I wanted to do a multi-valued array in php I would initialize the
array like this, how would I do this in ColdFusion?

Thanks,
- Charles

PHP Example --
$item = array(
                  'level'=> $level,
                  'ecs' => $expanded,
                  'dn'=> $dn,
                  'rdn'=> $rdn[0],
                  'icon'=> $icon,
        );
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 12/01/2005


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase Captivate from House of Fusion, a Macromedia Authorized Affiliate and 
support the CF community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=52

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190490
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to