Ok just got it to work with an array.  Just a bit brain dead this morning.
Thanks for you help guys.

Brian

-----Original Message-----
From: Steve Onnis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 27 August 2003 3:46 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: Variable Problems


show us the code of how your currently doing it.  Am sure that arrays will
work

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Knott,
Brian
Sent: Wednesday, August 27, 2003 3:36 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: Variable Problems


I was trying to use arrays but I can't get them to work.  I've tried the
following code

<cfset student_array[students.currentrow] =
evaluate('#student_array[students.currentrow]#') + 1>

and <cfset student_array[students.currentrow] =
student_array[students.currentrow] + 1> but thats not going to work.

Brian

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 27 August 2003 3:24 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: Variable Problems



Hi

I would use an array 2 dimensions and add 1 in array[question][student]

Laurent

 Laurent Fontaine
 Sr Web Developer
 American Power Conversion



      Level 13, 65 Berry Street
      North Sydney, NSW 2060
      AUSTRALIA

 tel: +61 2 8923 9339


 @:   [EMAIL PROTECTED]









                      "Knott, Brian"

                      <[EMAIL PROTECTED]>                 To:
"CFAussie Mailing List" <[EMAIL PROTECTED]>

                      Sent by:                              cc:

                      [EMAIL PROTECTED]         Subject:
[cfaussie] Variable Problems

                      emon.com.au





                      27/08/2003 03:09 PM

                      Please respond to "CFAussie

                      Mailing List"









I have a problem setting variables.

I have a loop of questions that contain a loop of questions.  So the loops
look like this.

Question 1
             Student 1
             Student 2
             Student 3
Question 2
             Student 2
             Student 3
             Student 4
Question 3
             Student 1
             Student 2

What I want to be able do is add up the number of questions has done.  So
in
the above example student 1 would be 2, student 2 would be 3.  So I'm
trying
to set some kind of counter inside the question loop every time a student
is
found.

 My problem is that inside the loop I can say

<cfset variables.studentXXX = student XXX + 1>

The student number could be anything.

So in summary just after a way to add up the number of questions a student
has answered.

Brian Knott

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/






---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to