Duh, never mind... end of the day thing- I just did a simple <cfif
PrintGrade.Quarter EQ....>
-----Original Message-----
From: Janine Jakim
Sent: Wednesday, May 15, 2002 4:13 PM
To: CF-Talk
Subject: isdefined with array output
I have a page that sets up the output of a query to send to a pdf. It is
set by quarters. I use one query that runs through all the quarters and
fills in accordingly- it looks like so:
For example quarter 1 would look like:
<CFSET Grade1Qrtr1=Toolkit.SetFormFieldData("Grade1Qrtr1",
"#PrintGrade.Grade[1]#", 0)>
Then I'd keep going through to quarter 4 which would look like this
<CFSET Grade1Qrtr4=Toolkit.SetFormFieldData("Grade1Qrtr4",
"#PrintGrade.Grade[223]#", 0)>
Is fine unless there isn't anything in quarter 4 yet. Instead i get the
error message:
The element at position 223 in dimension 1 of object
"GradesPrint.GradeForSubject" cannot be found. The object has elements in
positions 1 through 222. Please, modify the index expression.
I thought maybe of using cfif isdefined- but it won't work with the [223]
showing the position....
Any thoughts?
Thanks in advance.
J
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists