Currently, I only know one way of initializing an array, but it seems
kinda silly and inefficient.

<cfset deptArray=arrayNew(1)>
<cfset deptArray[1]="Family Studies">
<cfset deptArray[2]="Kinesiology">
<cfset deptArray[3]="Public and Community Health">

In Actionscript, I can do myArray=newArray("Family Studies",
"Kinesiology", "Public and Community Health"), which is alot more
efficient (in number of lines).

I now have to do an array which more than 100 entries and I don't
want 100 lines to initialize it.  Is there a better way to do this in
Cold Fusion?  I'm creating this to loop through it's entries.

--
Daniel Kessler

Department of Public and Community Health
University of Maryland
Suite 2387 Valley Drive
College Park, MD  20742-2611
301-405-2545 Phone
www.phi.umd.edu
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to