Maybe it is just me be but creating a variable starting with "grade" and
the currow variable called grade and the not explicitly stating scope in
the @VAR, make me uncomfortable

I recommend rename the @CURROW var to something else and to explicitly
state scope (see below)


<@FOR START="1" STEP="1" STOP="20">
<@ASSIGN NAME="CROW" VALUE="<@CURROW>" SCOPE="local">
<TD>
<INPUT TYPE=TEXT MAXLENGTH=2 SIZE=2 NAME="grade<@VAR 
NAME="CROW" SCOPE="local">Q<@VAR NAME="quarter">.<@COLUMN 
'layout_0.Record_Identifyer'>" VALUE="<@COLUMN 'layout_0.Grade<@VAR 
NAME="grade">Q<@VAR NAME="quarter">'>">
</TD>
</@IF>

Ben Johansen - http://www.pcforge.com
Authorized Witango Reseller http://www.pcforge.com/WitangoGoodies.htm 
Authorized MDaemon Mail Server Reseller
http://www.pcforge.com/AltN.htm


-----Original Message-----
From: Joe Terrasi [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 19, 2003 11:07 AM
To: [EMAIL PROTECTED]
Subject: Witango-Talk: This has GOT to be a bug, right? Inconsistent
looping.

OK, still trying to port over my t2k apps.... Thanks again to all who 
have helped so far.

But I just found a major source of frustration.... In one of my more 
complex apps, I use a FOR loop to build part of a form as below:

-----
<@FOR START="1" STEP="1" STOP="20">

<@ASSIGN NAME="grade" VALUE="<@CURROW>" SCOPE="local">


<TD>
<INPUT TYPE=TEXT MAXLENGTH=2 SIZE=2 NAME="grade<@VAR 
NAME="grade">Q<@VAR NAME="quarter">.<@COLUMN 
'layout_0.Record_Identifyer'>" VALUE="<@COLUMN 'layout_0.Grade<@VAR 
NAME="grade">Q<@VAR NAME="quarter">'>">
</TD>
</@IF>

</@FOR>
------



OK, it mostly works. But in sporadic rows, I get missing characters. See
below:

------
<TD>
<INPUT TYPE=TEXT MAXLENGTH=2 SIZE=2 NAME="grade1Q3.001812" VALUE="">
</TD>

<TD>
<INPUT TYPE=TEXT MAXLENGTH=2 SIZE=2 NAME="grade2Q3.001812" VALUE="">
</TD>

<TD>
<INPUT TYPE=TEXT MAXLENGTH=2 SIZE=2 NAME="grad3Q3.001812" VALUE="">
</TD>
------

Look at the last input statement. See where it says "grad3Q3...?" Now 
why in the world would it drop the "e" from the name (it should be 
grade3Q3....)

It doesn't do this with any consistency. This is a loop within 
another loop, and 90% of the iterations on the page come out correct. 
I can't find any rhyme or reason to connect the times that are a 
problem. It's not always the same character that's dropped, either. 
In one case, it was even a ">" which really fouled things up.

Please tell me I'm not just losing my mind. This is an app that worked
in t2k.

Thanks!

Joe

PS - config: Mac OSX 10.2, WebSTAR...
PPS - pretty sure I have the newest build of the plug-in now.
-- 
Joe Terrasi             [EMAIL PROTECTED]
St. Clement School      http://www.stclementschool.org
St. Clement Church      http://www.stclementchurch.org
773-348-8212            fax: 773-348-4712

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to