yup, you're right. thanks
On Feb 17, 2004, at 3:16 PM, Robert Shubert wrote:
You should create a separate packaging array row = box; col = wine
bottle, and loop through your order array while populating your
packaging array. The two shouldn't intersect. I believe you'll have
unpredictable results if you try to change the dimensions of the array
you are currently looping through.
In your example you would pickup order line item one and populate your
packaging array (row/case 1) with 4 1's, then pickup line item two,
populate four more 2's in row/case one, and populate 5 2's in row/case
2.
When you're done, your packaging array would describe (in detail) how
you want your cases packed.
Robert
-----Original Message-----
From: Roland Dumas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 17, 2004 6:07 PM
To: [EMAIL PROTECTED]
Subject: Re: Witango-Talk: adding rows
well, it's a routine for packing wine cartons.
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
_______________________________________________________________________
_
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf