I am hoping that someone out there can help me out, a few months ago I wrote
a routine to dynamically create an Array on the fly without knowing the
number of elements or the number of dimensions....
Anyway I am sure that the following code was the way I did it, however its
not. Can anyone else out there shed some light on triggering my memory in
what I should have done.
<cfset Andy="aAndy">
<cfset "#Andy#" = ArrayNew(1)>
<cfset aAndy[1] = "Hello">
<cfset aAndy[2] = "Hello">
<cfset aAndy[3] = "Hello">
<cfset Test="[1]">
<cfset "aAndy#Test#" = ArrayNew(1)>
<cfset aAndy[1][1] = "Hello">
<cfset aAndy[1][2] = "Goodbye">
Is the same as if I had the following code:-
<cfset aAndy = ArrayNew(1)>
<cfset aAndy[1] = "Hello">
<cfset aAndy[2] = "Hello">
<cfset aAndy[3] = "Hello">
<cfset aAndy[1] = ArrayNew(1)>
<cfset aAndy[1][1] = "Hello">
<cfset aAndy[1][2] = "Goodbye">
regards
Andrew Scott
Senior Cold Fusion Application Developer
ANZ eCommerce Centre
* Ph 8615 6018
* [EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists