David / All:

Thank you David, that certainity cured the array offset problem -- I
should be a little more careful when cutting & pasting code, would also
help if I proofed it better (but for the life of me, I just didn't see
the increment).

The CFSCRIPT code executes without error now, but I still must be
addressing the array of structures incorrectly in CFSCRIPT "talk", since
all 100 records output are the same (the first structure in the array).
Could someone please provide the correct interpretation of this CFML
code:

<TABLE BORDER="3">
<CFOUTPUT>
<CFLOOP INDEX="T" FROM="1" TO="#ArrayLen(Student)#">
<TR>
   <TD>#Student[T].ID#</TD>
   <TD>#Student[T].LN#</TD>
   <TD>#Student[T].FN#</TD>
</TR>
</CFLOOP>
</CFOUTPUT>
</TABLE>

This is the CFSCRIPT code:
        
WriteOutput("<TABLE BORDER='3'>") ;

for (T = 1 ; T LTE #ArrayLen(Student)# ; T = T + 1)
    {
      WriteOutput("<TR>
                   <TD>#Student[T].ID#</TD>
                   <TD>#Student[T].LN#</TD>
                   <TD>#Student[T].FN#</TD>
                   </TR>") ;
    }

WriteOutput("</TABLE>") ;

Although this code executes without error, only the first set of
elements are outputted for all 100 records; the CFML code executes as
desired.

Thank You !

-Gerry (CFSCRIPT Humbled !)

Gerard T. Pauline
Mgr, Internet/DB Applications
Computer Systems, DoIT
Pace University

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to