you add bottles to a case by line item. so if the first one is 4 bottles, you have 8 empty spaces
If then next one is 9 bottles, you can only put 8 in and have to create a row of 1 to go into the next case.
So the extra rows would be created in the <@rows> loops IFF the overstuffed case was encountered.
On Feb 17, 2004, at 2:02 PM, Fergal Donlon wrote:
Hi Roland,
Yes you can add a row to an array you're processing using <@addrows>.
However if you have this in a <@rows> loop you will end up with an array
exactly double in size (and not n+1 as you suggested) as for each iteration
a row will be added. These new rows will also not be processed within the
initial <@rows> loop as if they were you would end up with an infinite
loop....the initial array getting bigger by one row for each iteration.
Can you be a bit more specific in what you are trying to achieve. If you
want only one row to be added during the <@rows> process then you could for
example check to see if <@currow>=1 and if so add a row, otherwise process
as normal.
Hope this helps and if I can assist you further please contact me.
Fergal
----- Original Message ----- From: "Roland Dumas" <[EMAIL PROTECTED]> To: "WiTango List" <[EMAIL PROTECTED]> Sent: Wednesday, February 18, 2004 7:57 AM Subject: Witango-Talk: adding rows
Can I add a row to an array that I'm processing?
as in: between <@rows> and </@rows> can I add a row and have it be processed by the <@rows> loop? staring with n rows, but ending up with N+1?
______________________________________________________________________ __
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
_______________________________________________________________________ _
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
