myVariable[1] may be referring to a numbered element in an array (which have to 
be integers):

<cfset myVariable = arrayNew(1)>
<cfset myVariable[1] = "my first value">
<cfset myVariable[2] = "my second value">
<cfoutput>#myVariable[1]#</cfoutput> would = my first value

whereas myVariable["one"] may be referring to a named element of a structure 
(which can be any string):

<cfset myVariable = structNew()>
<cfset myVariable["one"] = "my first value">
<cfset myVariable["fruitcake"] = "my christmas value">
<cfset myVariable["two"] = "my second value">
<cfoutput>#myVariable["one"]#</cfoutput> would = my first value



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315909
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to