to create a new list, just create a variable.  Use the list functions on
that variable and make sure you specify whatever delimeter is relevent (","
is usually the default, but you can use anything).  A list is really any
text, but you could visualize it as a 1d array in terms of it's use.  An
entire paragraph is a list of words, with space, periods, carriage returns,
and linefeeds as delimeters.  Refer to these delims. by their ASCII
Character value (ex. carriage return is #Chr(13)#).  To pass lists, use any
method you'd use for any other variable (be careful not to exceed the
character limit if you are using cookies, though).  I usually pass arrays
and structures by setting a session variable equal to the variable,
personally.

~Simon

-----Original Message-----
From: Gavin Myers [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 29, 2000 12:11 PM
To: CF-Talk
Subject: ...list...array


okay, i've been getting into lists and arrays but i cant find very much good
reference

1: is a list just a 1d array?
2: how do you carry a list/array through pages? Is the only way to do it via
application.cfm and locking the list/array?
3: i can figgure out how to make a new array, pretty tough arraynew(1) ;),
but how do you make a new list? couldnt find the function for it...

I'm pretty famaliar with arrays, they arent a very tough concept, my main
problem is syntax, wich i can put togethor via developin web applications
(the cf standard book). How to compare them to another when done, how to add
the person picked the letter b on the third question... most of this stuff i
can figgure out by looking at the functions.. my main problem is question
#2.
<cfset myarray = array()>

when i do this:
<cfset myarray[1]="1">
<cfset myarray[2]="2">
<cfset myarray[3]="3">

It bascially does this:
myarray = [1,2,3]

right?

a list really looks & seems to act like a 1d array
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
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/cf-talk@houseoffusion.com/
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