Just curious... why are you using a two-dimensional array?  Why not just use
a normal array and make all the odd indices questions and all the even
indices answers?

+-----------------------------------------------+
Bryan Love
  Database Analyst
  Macromedia Certified Professional
  Internet Application Developer
TeleCommunication Systems
[EMAIL PROTECTED]
+-----------------------------------------------+

"...'If there must be trouble, let it be in my day, that my child may have
peace'..."
        - Thomas Paine, The American Crisis

"Let's Roll"
        - Todd Beamer, Flight 93



-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 1:11 PM
To: CF-Talk
Subject: RE: Totally Stupid Array[1][2] Output Question


OK,  

The below is ugly, but it works:

<cfloop index="x" from="1" to="#ArrayLen(QSNDSC_array)#">
  <cfoutput>#QSNDSC_array[x][1]# #QSNDSC_array[x][2]#</cfoutput>
</cfloop>

Is there a better way tht anybody knows of?


:: #arrayName[1,1]# #arrayName[1,2]#
:: maybe?


:: So, how do I output all values in the following (assume it's a question
:: [1] /answer [2] pair):
:: 
:: #QSNDSC[1][2]#
:: 
:: Output like (for all questions and answers)
:: 
:: question 1 - answer 1
:: question 2 - answer 2
:: question 3 - answer 3

                                

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to