Re: [U2] CoRelating Two Arrays
You might also want to correct the spelling/variable name in: Receeived.Running.Total = 0 Hth Colin Alfke Calgary, Canada -Original Message- From: Brutzman Yup... Before the "exit" I need to Where.We.Left.Off = Receiver.Count Thanks to Allen, Larry, and Robert. --Bill -Original Message- From: Robert Houben Nothing is "resetting" Where.We.Left.Off to "1". The code that you are providing below sets it to "1" at the beginning and NEVER CHANGES IT! The only place you reference it in your code is the "for Receiver.Count..." loop, and there it is only used to set the initial value of Receiver.Count. Its value is never set inside the two for loops. -Original Message- From: Bill Brutzman When I try do something like the following, inside the loop, UV keeps resetting Where.We.Left.Off to "1". To solve this, I am expecting to invoke brute force. I am surprised that UV-Basic behaves this way. An explanation would be appreciated. --Bill Where.We.Left.Off = 1 for Blanket.PO.Count = 1 to Total.Nbr.PO.Releases read R.POD from F.POD... PO.Qty = R.POD, Blanket.PO.Count> for Receiver.Count = Where.We.Left.Off to Total.Nbr.Receivers read R.Rcvr from F.Rcvr... Received.Qty = R.Rcvr Received.Running.Total += Received.Qty begin case case Received.Running.Total > PO.Line.Item.Qty ; crt PO.Qty : ' ' : Received.Qty Receeived.Running.Total = 0 exit end case next Receiver.Count next Blanket.PO.Count ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] CoRelating Two Arrays
Yup... Before the "exit" I need to Where.We.Left.Off = Receiver.Count Thanks to Allen, Larry, and Robert. --Bill -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Robert Houben Sent: Wednesday, January 26, 2011 12:45 PM To: U2 Users List Subject: Re: [U2] CoRelating Two Arrays Nothing is "resetting" Where.We.Left.Off to "1". The code that you are providing below sets it to "1" at the beginning and NEVER CHANGES IT! The only place you reference it in your code is the "for Receiver.Count..." loop, and there it is only used to set the initial value of Receiver.Count. Its value is never set inside the two for loops. -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bill Brutzman Sent: Wednesday, January 26, 2011 9:26 AM To: U2 Users List Subject: [U2] CoRelating Two Arrays When I try do something like the following, inside the loop, UV keeps resetting Where.We.Left.Off to "1". To solve this, I am expecting to invoke brute force. I am surprised that UV-Basic behaves this way. An explanation would be appreciated. --Bill Where.We.Left.Off = 1 for Blanket.PO.Count = 1 to Total.Nbr.PO.Releases read R.POD from F.POD... PO.Qty = R.POD, Blanket.PO.Count> for Receiver.Count = Where.We.Left.Off to Total.Nbr.Receivers read R.Rcvr from F.Rcvr... Received.Qty = R.Rcvr Received.Running.Total += Received.Qty begin case case Received.Running.Total > PO.Line.Item.Qty ; crt PO.Qty : ' ' : Received.Qty Receeived.Running.Total = 0 exit end case next Receiver.Count next Blanket.PO.Count ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] CoRelating Two Arrays
There's no code that changes Where.We.Left.Off in your example. You initialize it, but never change it... On 1/26/2011 12:25 PM, Bill Brutzman wrote: > When I try do something like the following, inside the loop, UV keeps > resetting Where.We.Left.Off to "1". > To solve this, I am expecting to invoke brute force. I am surprised that > UV-Basic behaves this way. > An explanation would be appreciated. > > --Bill > > Where.We.Left.Off = 1 > > for Blanket.PO.Count = 1 to Total.Nbr.PO.Releases > > read R.POD from F.POD... > PO.Qty = R.POD, Blanket.PO.Count> > > for Receiver.Count = Where.We.Left.Off to Total.Nbr.Receivers > >read R.Rcvr from F.Rcvr... > Received.Qty = R.Rcvr >Received.Running.Total += Received.Qty > begin case > case Received.Running.Total > PO.Line.Item.Qty ; crt PO.Qty : ' ' : > Received.Qty >Receeived.Running.Total = 0 > > exit > end case > > next Receiver.Count > > next Blanket.PO.Count > > ___ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users > ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] CoRelating Two Arrays
Nothing is "resetting" Where.We.Left.Off to "1". The code that you are providing below sets it to "1" at the beginning and NEVER CHANGES IT! The only place you reference it in your code is the "for Receiver.Count..." loop, and there it is only used to set the initial value of Receiver.Count. Its value is never set inside the two for loops. -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bill Brutzman Sent: Wednesday, January 26, 2011 9:26 AM To: U2 Users List Subject: [U2] CoRelating Two Arrays When I try do something like the following, inside the loop, UV keeps resetting Where.We.Left.Off to "1". To solve this, I am expecting to invoke brute force. I am surprised that UV-Basic behaves this way. An explanation would be appreciated. --Bill Where.We.Left.Off = 1 for Blanket.PO.Count = 1 to Total.Nbr.PO.Releases read R.POD from F.POD... PO.Qty = R.POD, Blanket.PO.Count> for Receiver.Count = Where.We.Left.Off to Total.Nbr.Receivers read R.Rcvr from F.Rcvr... Received.Qty = R.Rcvr Received.Running.Total += Received.Qty begin case case Received.Running.Total > PO.Line.Item.Qty ; crt PO.Qty : ' ' : Received.Qty Receeived.Running.Total = 0 exit end case next Receiver.Count next Blanket.PO.Count ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
[U2] CoRelating Two Arrays
When I try do something like the following, inside the loop, UV keeps resetting Where.We.Left.Off to "1". To solve this, I am expecting to invoke brute force. I am surprised that UV-Basic behaves this way. An explanation would be appreciated. --Bill Where.We.Left.Off = 1 for Blanket.PO.Count = 1 to Total.Nbr.PO.Releases read R.POD from F.POD... PO.Qty = R.POD, Blanket.PO.Count> for Receiver.Count = Where.We.Left.Off to Total.Nbr.Receivers read R.Rcvr from F.Rcvr... Received.Qty = R.Rcvr Received.Running.Total += Received.Qty begin case case Received.Running.Total > PO.Line.Item.Qty ; crt PO.Qty : ' ' : Received.Qty Receeived.Running.Total = 0 exit end case next Receiver.Count next Blanket.PO.Count ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] CoRelating Two Arrays
Am I missing something? It doesn't appear to me that you are modifying Where.We.Left.Off anywhere in this code snippet, so I don't see how UV is "resetting" it, since it never gets set to anything but 1 at the beginning of your code. Larry Hiscock Western Computer Services -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bill Brutzman Sent: Wednesday, January 26, 2011 9:26 AM To: U2 Users List Subject: [U2] CoRelating Two Arrays When I try do something like the following, inside the loop, UV keeps resetting Where.We.Left.Off to "1". To solve this, I am expecting to invoke brute force. I am surprised that UV-Basic behaves this way. An explanation would be appreciated. --Bill Where.We.Left.Off = 1 for Blanket.PO.Count = 1 to Total.Nbr.PO.Releases read R.POD from F.POD... PO.Qty = R.POD, Blanket.PO.Count> for Receiver.Count = Where.We.Left.Off to Total.Nbr.Receivers read R.Rcvr from F.Rcvr... Received.Qty = R.Rcvr Received.Running.Total += Received.Qty begin case case Received.Running.Total > PO.Line.Item.Qty ; crt PO.Qty : ' ' : Received.Qty Receeived.Running.Total = 0 exit end case next Receiver.Count next Blanket.PO.Count ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users