Quantity per Box, flow control Follow
Hi, I know my problem here is identical to others that are described here in this comunity, but I couldnt resolve mine
I will start to describe my scenario:
I have 2 data sources of input by user (two number input boxes)
"totalquant" and "quantbybox"
On my label output, I have and object (text object) who will receive "quantbybox" value..Im going to call in "ReceiveQuantByBox"
I want to automate it so that it puts the number of labels needed to reach the totalquant and in the "ReceiveQuantByBox" go put the right amount.
I will have to have 4 labels in total.
3 with ReceiveQuantByBox = 26 and last with ReceiveQuantByBox = 22.
This is what I've done:
- On Copies per serial number, I made a multiline script
if Format.NamedSubStrings("totalquant").Value Mod Format.NamedSubStrings("quantbybox").Value = 0 then
Value = Format.NamedSubStrings("totalquant").Value / Format.NamedSubStrings("quantbybox").Value
Value = Int (Format.NamedSubStrings("totalquant").Value / Format.NamedSubStrings("quantbybox").Value) + 1
- On the output (ReceiveQuantByBox) object, I made an event control script, and on IdenticalCopies Event, I try to make a flow control and a counter help me reach the total quantity.
If my counter doesnt reached the totalquant, My output will be 26...when the total quantity is reached or exceeded totalquant, my output will be 22
Do Until a=(totalquant-quantbybox)
I tryed this last code with Format.NamedSubStrings (ex:Format.NamedSubStrings("totalquant").Value )
and without that to, but nothing...
another question:when i must use Format.NamedSubStrings and just the reference to the data source (ex:just...totalquant for instance)??
And I dont know why, my counter doesnt count in each label, he just count in the first label ...I think.
Sorry for my English and i appreciate some help please.
Please sign in to leave a comment.