Why don't you create a list using <cfset listname = ("a","b","c","d")> and
then use the ListToArray function
-----Original Message-----
From: Kevin Pechin [mailto:[EMAIL PROTECTED]]
Sent: 02 August 2000 15:58
To: [EMAIL PROTECTED]
Subject: RE: Array/List Initialization
Actually what i was referring to was something along the lines of
<cfset listname= ArrayNew(1)>
<cfset listname = ("a","b","c","d")>
This way i won't have to do
listname[1] = "a"
listname[2] = "b" ...
It will be a single dimension array.
>>> Andy Ewings <[EMAIL PROTECTED]> 08/02/00 10:31AM >>>
<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.
----------------------------------------------------------------------------
--
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.