In reviewing the code, I realize I forgot to set up the array part... this is what it should be:
<cfset MyStruct=ArrayNew(1)>
<cfloop index="i" from="1" to="LastNum">
<cfset MyStruct[i]=StructNew()> - define the structure
<cfset MyStruct[i].key1="First...
Yes, you may in a sense...
First define an array of dimension 1, then define a structure and populate it within a loop:
<cfset MyStruct=ArrayNew(1)>
<cfloop index="i" from="1" to="LastNum">
<cfset MyStruct[i]=StructNew()> - define the structure
<cfset...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.