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
______________________________________________________________________
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
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

Reply via email to