Text18 in this picture. The Text for quantity of the goods, A01 Text20. The Text as the quantity of the goods how A02,CodePudding user response:
So the re-inspection - dizzy, and the number of remaining every position, waiting for inspection, the number of not to use the database? Have these two Numbers, bad judgmentCodePudding user response:
Shipment of goods purchase and nothing but,There should be A array would be A (0 to Max), stored inside each container number of currently available
Every time replenish onr's stock, as you describe example is to 1 at a time, in fact every time give n are the same operation:
For I=0 to Max
If n & gt; A (I) then
N=n - A (I)
A (I)=0
The else
A (I)=A (I) - n
N=0
The exit for
End the if
Next
'after the cycle, to inspect whether there is not enough situation would be:
If n> 0 then msgbox "position is not enough, and" & amp; N & amp; "No place to put"
Each shipment (unqualified) was equivalent to shipment, in which position, on A (number) would be combined with the corresponding number of shipment, of course, if shipment quantity is more than goods inventory quantity you want to check,
