trying to dynamically populate several 1 dimension arrays...

AryName1
AryName2
AryName3
AryNameN...

I create the N...Arrays with ArrayNew(1) and then try a loop to populate

<cfloop...
<cfset AryName#j#[i] = Somedata.field[j]>
</cfloop>

Gets:Invalid CFML construct found on line 156 at column 49.

or

<cfloop...
<cfset "AryName#j#[i]" = Somedata.field[j]>
</cfloop>

Gets:The string "NewColNum1[i]" is not a valid ColdFusion variable name.

or

<cfloop...
<cfset theAryName = "NewColNum"&#j#>
<cfset theAryName = Somedata.field[j]>
</cfloop>

Gets:You have attempted to dereference a scalar variable of type class 
java.lang.String as a structure with members. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to