>
> 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.
>
To initialise a list you do :
<cfset mylist = "">
To initialise an array you do :
<cfset myarray = ArrayNew(x)>
where x is the number of dimensions that you want in the array.
HTH
Regards
Stephen
------------------------------------------------------------------------------
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.