workers will be input like this 24,58,34
and quantity is just a number 2 for example
here is my code for dividing quantity based on workers
Code: Select all
on mouseUp
put fld "u" into tempu
replace "," with cr in tempu
put number of lines of tempu into tempu2
put fld "q" into tempq
put tempq / tempu2 into tempq2
put tempu2 & tempq2 into fld "a"
end mouseUp
