Kevin,
Try this:
<cfscript>
yourArray=ArrayNew();
yourArray[1]=#value1#;
yourArray[2]=#value2#;
...etc.
</cfscript>
I know you said "via a cfset", but if you're setting a lot of variables to
the array, I suggest using <cfscript>. If, however, you're not comfortable
with that, your standard <cfset> will work just fine.
<cfset yourArray=ArrayNew()>
<cfset yourArray[1]=#value1#>
<cfset yourArray[2]=#value2#>
...etc.
Hope that helps...
Mark
-----Original Message-----
From: Kevin Pechin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 02, 2000 10:16 AM
To: [EMAIL PROTECTED]
Subject: Array/List Initialization
Hi Everyone,
This is going to sound like a really basic question, but i have not
been able to find an answer on any of the archives.
How do you initialize an array or a list. For example i have twenty
items and i want to hard code them into an array (rather then use
ArrayAppend on each). How would i do this via a cfset?
I know this should be something really simple, but I just can't figure
it out.
-Kevin
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.