<cfset listname = ""> to initialise a list and <cfset ArrayName =
ArrayNew(dimension)> to initialise an array.

If you want to hard code an element of an array just use <cfset
arrayname[1][1] = value> for the first dimension of the first element for
example.



-----Original Message-----
From: Kevin Pechin [mailto:[EMAIL PROTECTED]]
Sent: 02 August 2000 15:16
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.

Reply via email to